📄 manualregistration.frm
字号:
VERSION 5.00
Object = "{DB1EACDC-26FE-11D2-9A7B-000000000000}#1.0#0"; "Registration.OCX"
Begin VB.Form frmManualRegistration
Caption = "Example for manual Registration:"
ClientHeight = 4830
ClientLeft = 60
ClientTop = 345
ClientWidth = 9420
LinkTopic = "Form1"
ScaleHeight = 4830
ScaleWidth = 9420
StartUpPosition = 3 'Windows-Standard
Begin RegistrationOCX.Registration_manual Registration_manual1
Left = 3840
Top = 4020
_ExtentX = 873
_ExtentY = 873
End
Begin VB.CommandButton Command1
Caption = "&Register"
Height = 555
Left = 6240
TabIndex = 7
Top = 3900
Width = 2655
End
Begin VB.TextBox Text5
Height = 285
Left = 2880
TabIndex = 6
Top = 2820
Width = 5415
End
Begin VB.TextBox Text4
Height = 285
Left = 2880
TabIndex = 4
Top = 1860
Width = 5415
End
Begin VB.TextBox Text3
Height = 285
Left = 2880
TabIndex = 3
Top = 1380
Width = 5415
End
Begin VB.TextBox Text2
Height = 285
Left = 2880
TabIndex = 2
Top = 900
Width = 5415
End
Begin VB.TextBox Text1
Height = 285
Left = 2880
TabIndex = 1
Top = 420
Width = 5415
End
Begin VB.Label Label2
Alignment = 1 'Rechts
Caption = "The Key:"
Height = 315
Left = 840
TabIndex = 5
Top = 2820
Width = 1695
End
Begin VB.Line Line2
X1 = 180
X2 = 9180
Y1 = 2640
Y2 = 2640
End
Begin VB.Line Line1
X1 = 2700
X2 = 2700
Y1 = 120
Y2 = 4500
End
Begin VB.Label Label1
Alignment = 1 'Rechts
Caption = "Registrationdata:"
Height = 255
Left = 840
TabIndex = 0
Top = 480
Width = 1635
End
End
Attribute VB_Name = "frmManualRegistration"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Registration_manual1.String1 = Text1
Registration_manual1.String2 = Text2
Registration_manual1.String3 = Text3
Registration_manual1.String4 = Text4
Registration_manual1.Key = Text5
Registration_manual1.KeyTesten
If Registration_manual1.KeyKorrekt = True Then
MsgBox ("Fine ! Programm is now registered !")
Else
Select Case MsgBox("Sorry. No valid Key entered. Do you want to try again ?", vbQuestion + vbRetryCancel, "Question")
Case 4
' Retry
Case 2
' Abbort
Unload frmManualRegistration
End Select
End If
End Sub
Private Sub Form_Load()
Call CenterForm(frmManualRegistration)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -