📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BorderStyle = 0 'None
Caption = "log on"
ClientHeight = 5385
ClientLeft = 150
ClientTop = 720
ClientWidth = 7695
FillStyle = 0 'Solid
Icon = "Form1.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
Picture = "Form1.frx":06EA
ScaleHeight = 5385
ScaleWidth = 7695
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text2
Height = 375
Left = 2760
TabIndex = 6
Text = "ic"
Top = 1560
Width = 1695
End
Begin VB.CommandButton Command2
Caption = "退出"
DownPicture = "Form1.frx":25578
Height = 735
Left = 3840
Style = 1 'Graphical
TabIndex = 3
Top = 3240
Width = 1575
End
Begin VB.CommandButton Command1
Caption = "登录"
Height = 735
Left = 1440
TabIndex = 2
Top = 3240
Width = 1575
End
Begin VB.TextBox Text1
Height = 375
IMEMode = 3 'DISABLE
Left = 2760
PasswordChar = "*"
TabIndex = 0
Text = "asd"
Top = 2040
Width = 1695
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "用 户 名"
Height = 375
Left = 1440
TabIndex = 5
Top = 1680
Width = 975
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "登录密码"
Height = 375
Left = 1440
TabIndex = 4
Top = 2160
Width = 975
End
Begin VB.Label Label1
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "欢迎使用宾馆电子锁IC卡系统"
BeginProperty Font
Name = "楷体_GB2312"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 615
Left = 360
TabIndex = 1
Top = 360
Width = 6735
End
Begin VB.Menu file
Caption = "操作"
Begin VB.Menu modify
Caption = "修改密码"
End
Begin VB.Menu exit
Caption = "退出"
End
Begin VB.Menu publish
Caption = "版本"
Begin VB.Menu ee
Caption = "v1.0"
End
End
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
user$ = "ic"
pw$ = "asd"
a$ = "密码或用户名错误"
b$ = "核对密码框"
If (Text1.Text = pw$ And Text2.Text = user$) Then
Form3.Show
Form1.Hide
Text1.Text = ""
Else:
c = MsgBox(a$, vbOKCancel + vbExclamation, b$)
Text1.Text = ""
Text1.SetFocus
End If
Form3.Data1.Recordset.Edit
Form3.Data1.Recordset.Fields("密码") = pw$
'Form3.Data1.Recordset.Updata
Form3.Data1.Recordset.MoveLast
Form3.Data1.Refresh
End Sub
Private Sub Form1_activate()
Text2.SetFocus
Text2.Text = ""
Text1.Text = ""
End Sub
Private Sub Command2_Click()
a = MsgBox("您还未登录,要退出吗?", vbOKCancel + vbExclamation, "退出程序")
Select Case a
Case vbOK
End
Case vbCancel
Form1.Show
End Select
End Sub
Private Sub exit_Click()
End
End Sub
Private Sub exit1_Click()
End
End Sub
Private Sub modify_Click()
Form5.Show
Form1.Hide
End Sub
Private Sub publish_Click()
Print "v1.2"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -