📄 form11.frm
字号:
VERSION 5.00
Begin VB.Form 用户名界面
Caption = "Form11"
ClientHeight = 3810
ClientLeft = 60
ClientTop = 390
ClientWidth = 5370
LinkTopic = "Form11"
Picture = "Form11.frx":0000
ScaleHeight = 3810
ScaleWidth = 5370
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "添加"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 3960
TabIndex = 6
Top = 3240
Width = 1215
End
Begin VB.TextBox Text3
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
IMEMode = 3 'DISABLE
Left = 2040
PasswordChar = "*"
TabIndex = 5
Top = 2280
Width = 2055
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
IMEMode = 3 'DISABLE
Left = 2040
PasswordChar = "*"
TabIndex = 3
Top = 1320
Width = 2055
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 2040
TabIndex = 1
Top = 240
Width = 2055
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "重复密码:"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000080FF&
Height = 615
Left = 240
TabIndex = 4
Top = 2280
Width = 1455
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "密码:"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000080FF&
Height = 615
Left = 240
TabIndex = 2
Top = 1320
Width = 1455
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "新用户名:"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000040C0&
Height = 615
Left = 240
TabIndex = 0
Top = 240
Width = 1455
End
End
Attribute VB_Name = "用户名界面"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim str As String
Dim rs As ADODB.Command
Call OpenDB
str = "insert into 登入表(用户名,密码)"
str = str & "Values('" & Text1 & "','" & Text3 & "')"
If Text2 = Text3 Then
Set rs = New ADODB.Command
Set rs.ActiveConnection = Conn
rs.CommandText = str
rs.Execute
Set rs = Nothing
Conn.Close
Set Conn = Nothing
运动员成绩管理系统.Show
Unload Me
Else
MsgBox "两次密码输入不相同!"
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -