📄 addeditbookid.frm
字号:
VERSION 5.00
Begin VB.Form AddBookId
BorderStyle = 3 'Fixed Dialog
Caption = "添加借书人员"
ClientHeight = 3255
ClientLeft = 45
ClientTop = 330
ClientWidth = 5550
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3255
ScaleWidth = 5550
ShowInTaskbar = 0 'False
Begin VB.Frame Frame1
Height = 3135
Left = 120
TabIndex = 0
Top = 0
Width = 5295
Begin VB.CommandButton cmdOkCancel
Cancel = -1 'True
Caption = "取消(&C)"
Height = 375
Index = 1
Left = 3960
TabIndex = 12
Top = 2520
Width = 975
End
Begin VB.CommandButton cmdOkCancel
Caption = "保存(&E)"
Default = -1 'True
Height = 375
Index = 0
Left = 2640
TabIndex = 11
Top = 2520
Width = 975
End
Begin VB.TextBox txtBookIdZhi
Height = 270
Left = 1080
TabIndex = 10
Top = 1680
Width = 1455
End
Begin VB.TextBox txtBookIdDepart
Height = 270
Left = 3480
TabIndex = 9
Top = 1080
Width = 1455
End
Begin VB.TextBox txtBookIdClass
Height = 270
Left = 1080
TabIndex = 8
Top = 1080
Width = 1455
End
Begin VB.TextBox txtBookIdName
Height = 270
Left = 3480
TabIndex = 7
Top = 480
Width = 1455
End
Begin VB.TextBox txtBookId
Height = 270
Left = 1080
TabIndex = 6
Top = 480
Width = 1455
End
Begin VB.Line Line1
BorderColor = &H80000010&
X1 = 10
X2 = 5280
Y1 = 2280
Y2 = 2280
End
Begin VB.Line Line2
BorderColor = &H00FFFFFF&
X1 = 10
X2 = 5280
Y1 = 2295
Y2 = 2295
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "职 称"
Height = 180
Index = 4
Left = 240
TabIndex = 5
Top = 1680
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "部 门"
Height = 180
Index = 3
Left = 2640
TabIndex = 4
Top = 1080
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "班 级"
Height = 180
Index = 2
Left = 240
TabIndex = 3
Top = 1080
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "姓 名"
Height = 180
Index = 1
Left = 2640
TabIndex = 2
Top = 480
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "借书证号"
Height = 180
Index = 0
Left = 240
TabIndex = 1
Top = 480
Width = 720
End
End
End
Attribute VB_Name = "AddBookId"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' **********************************************************************
' 描 述:银龙图书管理系统
' 中国VB网收集整理 http://www.ChinaVB.net
' QQ交流群:13047826 14356878
' 发表源码或文章请发邮件到:info@chinavb.net
' **********************************************************************Dim i As Integer
'下面为保存和取消按钮的控件数组
Private Sub cmdOkCancel_Click(Index As Integer)
Select Case Index
Case 0 '确定按钮
'初始化所有变量为空
mAddEditId = ""
mAddEditIdName = ""
mAddEditIdClass = ""
mAddEditIdDepart = ""
mAddEditIdZhi = ""
'判断借书证号和姓名是否为空,如为空给出提示
If txtBookId.Text = "" Or txtBookIdName = "" Then
MsgBox "请把借书证号或姓名填写完整!", 0 + 48, "提示"
Exit Sub
End If
'将新的资料分别赋给相应变量,以存为数据库
mAddEditId = txtBookId.Text
mAddEditIdName = txtBookIdName.Text
mAddEditIdClass = txtBookIdClass.Text
mAddEditIdDepart = txtBookIdDepart.Text
mAddEditIdZhi = txtBookIdZhi.Text
Unload Me
mSave = True
Case 1 '取消按钮
mSave = False
Unload Me
End Select
End Sub
Private Sub txtBookId_GotFocus()
'设置光标处于借书证号时,输入框的背景色为蓝,前景色为黄
txtBookId.BackColor = vbBlue
txtBookId.ForeColor = vbYellow
End Sub
Private Sub txtBookId_LostFocus()
'设置光标离开借书证号时,输入框的背景色为白,前景色为黑
txtBookId.BackColor = vbWhite
txtBookId.ForeColor = vbBlack
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -