⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 demo.frm

📁 SoftLock加密控件(非源码)
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "用户应用程序"
   ClientHeight    =   3870
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6210
   LinkTopic       =   "Form1"
   ScaleHeight     =   3870
   ScaleWidth      =   6210
   StartUpPosition =   2  'CenterScreen
   Begin VB.TextBox Text3 
      Height          =   285
      Left            =   2040
      TabIndex        =   2
      Top             =   480
      Width           =   3015
   End
   Begin VB.TextBox Text1 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   2040
      TabIndex        =   1
      Top             =   1440
      Width           =   3015
   End
   Begin VB.CommandButton Command1 
      Caption         =   "注册"
      Height          =   285
      Left            =   2640
      TabIndex        =   0
      Top             =   2160
      Width           =   1575
   End
   Begin VB.Frame Frame1 
      Height          =   3255
      Left            =   360
      TabIndex        =   3
      Top             =   120
      Width           =   5535
      Begin VB.Label Label2 
         Caption         =   "注册码"
         Height          =   255
         Left            =   960
         TabIndex        =   5
         Top             =   1320
         Width           =   735
      End
      Begin VB.Label Label1 
         Caption         =   "用户号"
         Height          =   285
         Left            =   960
         TabIndex        =   4
         Top             =   360
         Width           =   615
      End
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()

    Dim reg As New LockManager.SoftLock
    
    reg.SoftwareName = "NEWDEMO1.0"
    reg.Register (Text1.Text)
    
    If reg.RegisteredUser Then
        MsgBox "序列号正确!! ", vbInformation, "正确"
    Else
        MsgBox "序列号错误!! ", vbCritical, "错误"
    End If

End Sub


Private Sub Form_Load()

    Dim strKey As String
    Dim RegKey As New LockManager.SoftLock
    RegKey.SoftwareName = "NEWDEMO1.0"
    strKey = RegKey.SoftwareCode
  
    Form1.Text3 = strKey

End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -