📄 frmwindowset.frm
字号:
VERSION 5.00
Begin VB.Form Frmwindowset
Caption = "系统设置"
ClientHeight = 4590
ClientLeft = 60
ClientTop = 465
ClientWidth = 6060
LinkTopic = "Form1"
ScaleHeight = 4590
ScaleWidth = 6060
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command5
Caption = "返 回"
Height = 495
Left = 4560
TabIndex = 12
Top = 3960
Width = 1215
End
Begin VB.Frame Frame4
Caption = "推迟还书月数"
Height = 1695
Left = 3480
TabIndex = 9
Top = 2160
Width = 1695
Begin VB.CommandButton Command4
Caption = "确 定"
Height = 375
Left = 360
TabIndex = 11
Top = 1080
Width = 1095
End
Begin VB.TextBox Text4
Alignment = 1 'Right Justify
Height = 375
Left = 240
TabIndex = 10
Top = 480
Width = 855
End
Begin VB.Label Label4
Caption = "月"
Height = 255
Left = 1200
TabIndex = 16
Top = 600
Width = 255
End
End
Begin VB.Frame Frame3
Caption = "延迟一天的罚金"
Height = 1695
Left = 360
TabIndex = 6
Top = 2160
Width = 1695
Begin VB.CommandButton Command3
Caption = "确 定"
Height = 375
Left = 240
TabIndex = 8
Top = 1080
Width = 1095
End
Begin VB.TextBox Text3
Alignment = 1 'Right Justify
Height = 375
Left = 240
TabIndex = 7
Top = 480
Width = 855
End
Begin VB.Label Label3
Caption = "元"
Height = 255
Left = 1200
TabIndex = 15
Top = 600
Width = 255
End
End
Begin VB.Frame Frame2
Caption = "可借的时间"
Height = 1695
Left = 3480
TabIndex = 3
Top = 360
Width = 1695
Begin VB.CommandButton Command2
Caption = "确 定"
Height = 375
Left = 240
TabIndex = 5
Top = 1080
Width = 1095
End
Begin VB.TextBox Text2
Alignment = 1 'Right Justify
Height = 375
Left = 240
TabIndex = 4
Top = 480
Width = 855
End
Begin VB.Label Label2
Caption = "月"
Height = 255
Left = 1200
TabIndex = 14
Top = 600
Width = 255
End
End
Begin VB.Frame Frame1
Caption = "学生借书的数量"
Height = 1695
Left = 360
TabIndex = 0
Top = 360
Width = 1695
Begin VB.CommandButton Command1
Caption = "确 定"
Height = 375
Left = 240
TabIndex = 2
Top = 1080
Width = 1095
End
Begin VB.TextBox Text1
Alignment = 1 'Right Justify
Height = 375
Left = 240
TabIndex = 1
Top = 480
Width = 855
End
Begin VB.Label Label1
Caption = "本"
Height = 255
Left = 1200
TabIndex = 13
Top = 600
Width = 255
End
End
End
Attribute VB_Name = "Frmwindowset"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
cnn.Fields(2).Value = Text1.Text
cnn.Update
MsgBox "设置成功!"
End Sub
Private Sub Command2_Click()
cnn.Fields(0).Value = Text2.Text
cnn.Update
MsgBox "设置成功!"
End Sub
Private Sub Command3_Click()
cnn.Fields(1).Value = Text3.Text
cnn.Update
MsgBox "设置成功!"
End Sub
Private Sub Command4_Click()
cnn.Fields(3).Value = Text4.Text
cnn.Update
Open_borrow_book
Do While cnn.EOF = False
If cnn.EOF = True Then
Exit Do
End If
cnn.MoveNext
Loop
MsgBox "设置成功!"
End Sub
Private Sub Command5_Click()
Unload Me
End Sub
Private Sub Form_Load()
Open_set_window
If Text4.Text = "" Then
Command4.Enabled = False
End If
If Text3.Text = "" Then
Command3.Enabled = False
End If
If Text2.Text = "" Then
Command2.Enabled = False
End If
If Text1.Text = "" Then
Command1.Enabled = False
End If
End Sub
Private Sub Text1_Change()
If Text1.Text = "" Then
Command1.Enabled = False
Else
Command1.Enabled = True
End If
End Sub
Private Sub Text2_Change()
If Text2.Text = "" Then
Command2.Enabled = False
Else
Command2.Enabled = True
End If
End Sub
Private Sub Text3_Change()
If Text3.Text = "" Then
Command3.Enabled = False
Else
Command3.Enabled = True
End If
End Sub
Private Sub Text4_Change()
If Text4.Text = "" Then
Command4.Enabled = False
Else
Command4.Enabled = True
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -