📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form 运动员成绩管理系统
Caption = "运动会成绩管理系统"
ClientHeight = 8370
ClientLeft = 60
ClientTop = 390
ClientWidth = 11820
LinkTopic = "Form1"
Picture = "Form1.frx":0000
ScaleHeight = 8370
ScaleWidth = 11820
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command3
Caption = "新用户申请"
BeginProperty Font
Name = "宋体"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 600
TabIndex = 8
Top = 6120
Width = 3135
End
Begin VB.CommandButton Command2
Caption = "退出系统"
BeginProperty Font
Name = "宋体"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 855
Left = 600
TabIndex = 6
Top = 7080
Width = 3135
End
Begin VB.CommandButton Command1
BackColor = &H00000000&
Caption = "进入系统"
BeginProperty Font
Name = "宋体"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 855
Left = 600
MaskColor = &H00000000&
TabIndex = 5
Top = 5040
Width = 3135
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
IMEMode = 3 'DISABLE
Left = 1800
PasswordChar = "*"
TabIndex = 4
Top = 2880
Width = 2295
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1800
TabIndex = 3
Top = 2040
Width = 2295
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "初始用户名为:123 密码为:321 考虑到数据安全请尽快更改密码"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF00FF&
Height = 1335
Left = 480
TabIndex = 7
Top = 3480
Width = 3735
End
Begin VB.Shape Shape1
Height = 3255
Left = 240
Top = 1680
Width = 4935
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "密码:"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 495
Left = 360
TabIndex = 2
Top = 2880
Width = 1095
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "用户名:"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 495
Left = 360
TabIndex = 1
Top = 2040
Width = 1095
End
Begin VB.Label Label1
BackColor = &H80000010&
BackStyle = 0 'Transparent
Caption = "运动会成绩管理系统"
BeginProperty Font
Name = "宋体"
Size = 26.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 615
Left = 240
TabIndex = 0
Top = 240
Width = 4935
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, people As String
Dim st As New ADODB.Recordset
Dim rs As ADODB.Command
Call OpenDB
str = "select * from 登入表 where 用户名='" & Text1.Text & "'"
st.Open str, Conn
If (st.BOF = True And st.EOF = True) Then
MsgBox "该用户名不存在,输入有误!"
Conn.Close
Set Conn = Nothing
Exit Sub
Else
If Text2.Text = st.Fields("密码").Value Then
登入界面.Show
Me.Hide
Else
MsgBox "密码错误!!!", vbInformation, vbOKOnly
Conn.Close
Set Conn = Nothing
Exit Sub
End If
End If
Conn.Close
End Sub
Private Sub Command2_Click()
退出界面.Show
Unload Me
End Sub
Private Sub Command3_Click()
用户名界面.Show
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -