📄 lentlogin.frm
字号:
VERSION 5.00
Begin VB.Form LentLogin
Caption = "登录"
ClientHeight = 2475
ClientLeft = 60
ClientTop = 345
ClientWidth = 5565
ControlBox = 0 'False
LinkTopic = "Form1"
ScaleHeight = 2475
ScaleWidth = 5565
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton cmdOkCancel
Cancel = -1 'True
Caption = "取消"
Height = 735
Index = 1
Left = 3360
Picture = "LentLogin.frx":0000
Style = 1 'Graphical
TabIndex = 3
ToolTipText = "取消操作"
Top = 1440
Width = 1335
End
Begin VB.CommandButton cmdOkCancel
Caption = "确定"
Default = -1 'True
Height = 735
Index = 0
Left = 720
Picture = "LentLogin.frx":030A
Style = 1 'Graphical
TabIndex = 2
ToolTipText = "开始查找"
Top = 1440
Width = 1335
End
Begin VB.TextBox txtBookId
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 345
Left = 2880
TabIndex = 1
Text = "Text1"
Top = 600
Width = 2415
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H80000005&
Caption = "请输入借书证号码"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000C0&
Height = 180
Left = 840
TabIndex = 0
Top = 720
Width = 1560
End
End
Attribute VB_Name = "LentLogin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim db As Database
Dim rst As Recordset
Private Sub cmdOkCancel_Click(Index As Integer)
Select Case Index
Case 0
If txtBookId.Text = "" Then
MsgBox "请输入借书证号码!", 0 + 48, "错误"
txtBookId.SetFocus
Exit Sub
Else
BookId = txtBookId.Text
LoginFlag = True
Unload Me
End If
Case 1
LoginFlag = False
Unload Me
End Select
End Sub
Private Sub Form_Load()
txtBookId.Text = ""
Set db = Workspaces(0).OpenDatabase(App.Path & "\DataBase\BookMIS.mdb", False)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -