📄 登陆窗体.frm
字号:
VERSION 5.00
Begin VB.Form form3
Caption = "登陆管理系统"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form2"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "退出"
Height = 375
Left = 2280
TabIndex = 5
Top = 2160
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 360
TabIndex = 4
Top = 2160
Width = 1335
End
Begin VB.TextBox Text2
Height = 375
IMEMode = 3 'DISABLE
Left = 1560
PasswordChar = "*"
TabIndex = 3
Top = 1080
Width = 1695
End
Begin VB.TextBox Text1
Height = 375
Left = 1560
TabIndex = 2
Top = 480
Width = 1695
End
Begin VB.Label Label2
Caption = "密 码:"
Height = 375
Left = 480
TabIndex = 1
Top = 1080
Width = 855
End
Begin VB.Label Label1
Caption = "管理员名:"
Height = 375
Left = 480
TabIndex = 0
Top = 480
Width = 855
End
End
Attribute VB_Name = "form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Dim bytemp As Integer
bytemp = jiao(Text1.Text, Text2.Text)
If bytemp = 1 Then
Load Form1
Form1.Visible = True
form3.Visible = False
Else
MsgBox "username or password as error"
form3.Text1.Text = ""
form3.Text2.Text = ""
form3.Text1.SetFocus
End If
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Text2_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Dim bytemp As Integer
bytemp = jiao(Text1.Text, Text2.Text)
If bytemp = 1 Then
Load Form1
Form1.Visible = True
form3.Visible = False
Else
MsgBox "username or password as error"
form3.Text1.Text = ""
form3.Text2.Text = ""
form3.Text1.SetFocus
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -