📄 main.frm
字号:
VERSION 5.00
Begin VB.Form frmMain
Caption = "用户应用程序"
ClientHeight = 4425
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form2"
ScaleHeight = 4425
ScaleWidth = 4680
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton Command3
Caption = "取消注册"
Height = 375
Left = 1080
TabIndex = 3
Top = 3240
Width = 2535
End
Begin VB.CommandButton Command2
Caption = "结束"
Height = 375
Left = 1080
TabIndex = 2
Top = 2520
Width = 2535
End
Begin VB.CommandButton Command1
Caption = "手动注册"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1080
TabIndex = 0
Top = 1800
Width = 2535
End
Begin VB.Label Label1
BeginProperty Font
Name = "楷体_GB2312"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 1080
TabIndex = 1
Top = 480
Width = 2535
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Form1.Show
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Command3_Click()
Dim reg As New LockManager.SoftLock
reg.SoftwareName = "NEWDEMO1.0"
reg.Register ("0")
End
End Sub
Private Sub Command4_Click()
Form2.Show
End Sub
Private Sub Form_Load()
Dim reg As New LockManager.SoftLock
reg.SoftwareName = "NEWDEMO1.0"
If reg.RegisteredUser Then
Label1.Caption = "XX软件注册版!"
Command1.Visible = False
Command4.Visible = False
Else
Label1.Caption = "XX软件非注册版!"
Command3.Visible = False
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -