form3.frm
来自「一个商业软件的源码」· FRM 代码 · 共 204 行
FRM
204 行
VERSION 5.00
Object = "{69958DD9-23E5-11D6-ACD7-0050BAC05F28}#12.0#0"; "CurtButton.ocx"
Begin VB.Form Form3
BackColor = &H00FFC0C0&
BorderStyle = 1 'Fixed Single
Caption = "新用户注册"
ClientHeight = 2730
ClientLeft = 45
ClientTop = 435
ClientWidth = 3690
Icon = "Form3.frx":0000
LinkTopic = "Form3"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2730
ScaleWidth = 3690
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame3
BackColor = &H00FFC0C0&
Height = 495
Left = 0
TabIndex = 10
Top = 1560
Width = 3615
Begin VB.OptionButton Option2
BackColor = &H00FFC0C0&
Caption = "普通用户帐户"
Height = 180
Left = 2040
TabIndex = 12
Top = 240
Value = -1 'True
Width = 1575
End
Begin VB.OptionButton Option1
BackColor = &H00FFC0C0&
Caption = "管理员帐户"
Height = 180
Left = 240
TabIndex = 11
Top = 240
Width = 1575
End
End
Begin VB.Frame Frame2
BackColor = &H00FFC0C0&
Height = 615
Left = 0
TabIndex = 1
Top = 2040
Width = 3615
Begin CurtButton多风格按钮控件.CurtButton CurtButton2
Height = 255
Left = 2520
TabIndex = 9
Top = 240
Width = 975
_ExtentX = 1720
_ExtentY = 450
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Picture = "Form3.frx":030A
Caption = "取消(&C)"
End
Begin CurtButton多风格按钮控件.CurtButton CurtButton1
Height = 255
Left = 1440
TabIndex = 8
Top = 240
Width = 975
_ExtentX = 1720
_ExtentY = 450
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Picture = "Form3.frx":0326
Caption = "确定(&OK)"
End
End
Begin VB.Frame Frame1
BackColor = &H00FFC0C0&
Height = 1575
Left = 0
TabIndex = 0
Top = 0
Width = 3615
Begin VB.TextBox Text3
Height = 270
IMEMode = 3 'DISABLE
Left = 1320
PasswordChar = "*"
TabIndex = 7
Top = 1200
Width = 2175
End
Begin VB.TextBox Text2
Height = 270
IMEMode = 3 'DISABLE
Left = 1320
PasswordChar = "*"
TabIndex = 3
Top = 720
Width = 2175
End
Begin VB.TextBox Text1
Height = 270
Left = 1320
TabIndex = 2
Top = 240
Width = 2175
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "确认密码:"
Height = 255
Left = 240
TabIndex = 6
Top = 1200
Width = 975
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "口令"
Height = 375
Left = 240
TabIndex = 5
Top = 720
Width = 975
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "用户名"
Height = 375
Left = 240
TabIndex = 4
Top = 240
Width = 615
End
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
End Sub
Private Sub CurtButton1_Click()
If Text3.Text = Text2.Text Then
Form2.Adodc1.Recordset.AddNew
Form2.Adodc1.Recordset.Fields(1).Value = Text3.Text
Form2.Adodc1.Recordset.Fields(0).Value = Text1.Text
If Option1.Value = True Then
Form2.Adodc1.Recordset.Fields(2).Value = "admin"
Else
Form2.Adodc1.Recordset.Fields(2).Value = "user"
End If
Form2.Adodc1.Recordset.UpdateBatch
Unload Me
Form2.CurtButton1.Enabled = True
Form2.CurtButton2.Visible = True
Form2.CurtButton3.Visible = False
Form2.Show
Else
MsgBox "你两次输入的密码不同,请重新输入!"
Text2.Text = ""
Text3.Text = ""
End If
End Sub
Private Sub Form_Load()
If Form2.CurtButton3.Visible = True Then
Option1.Value = True
Option2.Visible = False
Else
Option1.Visible = False
Option2.Value = True
End If
End Sub
Private Sub Form_Unload(Cancel As Integer)
Form2.Show
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?