-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrmReg.frm
More file actions
222 lines (219 loc) · 6.48 KB
/
frmReg.frm
File metadata and controls
222 lines (219 loc) · 6.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
VERSION 5.00
Begin VB.Form frmReg
BorderStyle = 3 'Fixed Dialog
Caption = "请输入您的注册信息"
ClientHeight = 2190
ClientLeft = 45
ClientTop = 330
ClientWidth = 4680
Icon = "frmReg.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2190
ScaleWidth = 4680
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command3
Caption = "帮助(&H)"
Height = 400
Left = 3315
TabIndex = 10
Top = 1530
Width = 1200
End
Begin VB.TextBox txtRegOld
Height = 360
Left = 1140
Locked = -1 'True
TabIndex = 2
TabStop = 0 'False
Top = 1195
Width = 1815
End
Begin VB.CommandButton Command2
Cancel = -1 'True
Caption = "取消(&C)"
Height = 400
Left = 3315
TabIndex = 5
Top = 900
Width = 1200
End
Begin VB.CommandButton Command1
Caption = "注册(&R)"
Default = -1 'True
Height = 400
Left = 3315
TabIndex = 4
Top = 270
Width = 1200
End
Begin VB.TextBox txtUserName
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 1140
TabIndex = 3
Top = 1710
Width = 1815
End
Begin VB.TextBox txtRegID
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 1140
TabIndex = 1
Top = 680
Width = 1815
End
Begin VB.TextBox txtRegName
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 1140
TabIndex = 0
Top = 165
Width = 1815
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "注册码"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 285
TabIndex = 9
Top = 1305
Width = 630
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "用户名"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 285
TabIndex = 8
Top = 1815
Width = 630
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "注册号"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 285
TabIndex = 7
Top = 780
Width = 630
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "注册名"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 285
TabIndex = 6
Top = 270
Width = 630
End
End
Attribute VB_Name = "frmReg"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Dim rstReg As New ADODB.Recordset
Dim strRegID As String
If Len(Trim(txtRegName.Text)) < 1 Then
MsgShow "请输入注册名称!"
txtRegName.SetFocus
Exit Sub
End If
If Len(Trim(txtRegID.Text)) < 1 Then
MsgShow "请输入注册号!"
txtRegID.SetFocus
Exit Sub
End If
If Len(Trim(txtUserName.Text)) < 1 Then
MsgShow "请输入注册用户名称!"
txtUserName.SetFocus
Exit Sub
End If
With rstReg
If .State <> 0 Then .Close
.Open "select * from RegID", gCnn, adOpenStatic, adLockOptimistic
If Not .EOF Then
!RegCorName = txtUserName.Text
!RegUser = txtRegName.Text
!RegNumber = IIf(Len(Trim(txtRegID.Text)) < 13, Trim(txtRegID.Text), Left(Trim(txtRegID.Text), 12))
.Update
End If
End With
MsgShow "注册完成,现在将退出系统,请重新进入!"
Unload Me
Unload frmAbout
End
'SubCipher strRegID, txtRegName, "WinWay200206"
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
CenterForm Me
txtRegOld.Text = Trim(SubCipher(gstrKeyTMP, IDVerify_new))
End Sub