📄 setfrm.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "Tabctl32.ocx"
Begin VB.Form setfrm
BackColor = &H00E0E0E0&
BorderStyle = 1 'Fixed Single
Caption = "设置"
ClientHeight = 3660
ClientLeft = 45
ClientTop = 330
ClientWidth = 4665
Icon = "setfrm.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3660
ScaleWidth = 4665
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
BackColor = &H00D0D0D0&
Height = 3615
Left = 30
TabIndex = 0
Top = 0
Width = 4575
Begin VB.CommandButton cmdOkCancel
BackColor = &H00FFFFFF&
Cancel = -1 'True
Caption = "取消"
Height = 375
Index = 1
Left = 2790
Style = 1 'Graphical
TabIndex = 9
Top = 3000
Width = 1125
End
Begin VB.CommandButton cmdOkCancel
BackColor = &H00FFFFFF&
Caption = "确定"
Height = 375
Index = 0
Left = 1680
Style = 1 'Graphical
TabIndex = 8
Top = 3000
Width = 1125
End
Begin TabDlg.SSTab SSTab1
Height = 2415
Left = 240
TabIndex = 1
Top = 240
Width = 3975
_ExtentX = 7011
_ExtentY = 4260
_Version = 393216
Style = 1
Tabs = 2
TabHeight = 520
BackColor = 13684944
TabCaption(0) = "设置查询次数"
TabPicture(0) = "setfrm.frx":058A
Tab(0).ControlEnabled= -1 'True
Tab(0).Control(0)= "Shape1"
Tab(0).Control(0).Enabled= 0 'False
Tab(0).Control(1)= "Label1"
Tab(0).Control(1).Enabled= 0 'False
Tab(0).Control(2)= "Image1"
Tab(0).Control(2).Enabled= 0 'False
Tab(0).Control(3)= "txtLentNum"
Tab(0).Control(3).Enabled= 0 'False
Tab(0).Control(4)= "UpDown1"
Tab(0).Control(4).Enabled= 0 'False
Tab(0).Control(5)= "Frame2"
Tab(0).Control(5).Enabled= 0 'False
Tab(0).ControlCount= 6
TabCaption(1) = "设置超时时间"
TabPicture(1) = "setfrm.frx":05A6
Tab(1).ControlEnabled= 0 'False
Tab(1).Control(0)= "txtCost"
Tab(1).Control(1)= "Frame4"
Tab(1).Control(2)= "Image2"
Tab(1).Control(3)= "Label2"
Tab(1).Control(4)= "Shape2"
Tab(1).ControlCount= 5
Begin VB.TextBox txtCost
Height = 315
Left = -72690
TabIndex = 7
Text = "Text1"
Top = 1275
Width = 1095
End
Begin VB.Frame Frame2
BackColor = &H005CE764&
Height = 60
Left = 15
TabIndex = 5
Top = 315
Width = 3945
End
Begin MSComCtl2.UpDown UpDown1
Height = 330
Left = 3000
TabIndex = 4
Top = 1245
Width = 225
_ExtentX = 397
_ExtentY = 582
_Version = 393216
BuddyControl = "txtLentNum"
BuddyDispid = 196613
OrigLeft = 2640
OrigTop = 1080
OrigRight = 2865
OrigBottom = 1455
Max = 100
SyncBuddy = -1 'True
BuddyProperty = 0
Enabled = -1 'True
End
Begin VB.TextBox txtLentNum
Height = 300
Left = 2160
TabIndex = 3
Text = "Text1"
Top = 1260
Width = 870
End
Begin VB.Frame Frame4
BackColor = &H000080FF&
Height = 60
Left = -74985
TabIndex = 10
Top = 315
Width = 3930
End
Begin VB.Image Image2
Height = 480
Left = -74865
Picture = "setfrm.frx":05C2
Top = 735
Width = 480
End
Begin VB.Image Image1
Height = 480
Left = 165
Picture = "setfrm.frx":128C
Top = 735
Width = 480
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "超时时间设置"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 210
Left = -74400
TabIndex = 6
Top = 1320
Width = 1260
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "每人查询次数"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00800000&
Height = 210
Left = 735
TabIndex = 2
Top = 1305
Width = 1260
End
Begin VB.Shape Shape1
BackColor = &H00E0E0E0&
BackStyle = 1 'Opaque
BorderColor = &H00FFFFFF&
BorderStyle = 0 'Transparent
Height = 2085
Left = 30
Top = 315
Width = 3930
End
Begin VB.Shape Shape2
BackColor = &H00E0E0E0&
BackStyle = 1 'Opaque
BorderColor = &H00FFFFFF&
BorderStyle = 0 'Transparent
Height = 2085
Left = -74970
Top = 315
Width = 3930
End
End
Begin VB.Shape Shape3
BackColor = &H00E0E0E0&
BackStyle = 1 'Opaque
BorderStyle = 0 'Transparent
Height = 195
Left = -15
Top = -90
Width = 4620
End
End
End
Attribute VB_Name = "setfrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Type MSet
BookNum As Integer
BookCost As Single
End Type
Dim SetFlag As MSet
Private Sub cmdOkCancel_Click(Index As Integer)
Select Case Index
Case 0
BookNum = Val(txtLentNum)
FaCost = Val(txtCost)
SetFlag.BookNum = Val(txtLentNum.Text)
SetFlag.BookCost = Val(txtCost.Text)
Put #1, 1, SetFlag
Unload Me
Case 1
Unload Me
End Select
End Sub
Private Sub Form_Load()
Open App.Path & "\Database\Set.Dat" For Random As #2 Len = Len(SetFlag)
Get #1, 1, SetFlag
txtLentNum = SetFlag.BookNum
txtCost = SetFlag.BookCost
End Sub
Private Sub Form_Resize()
MsgBox "请确认数据都归零后再修改这些设置", 0 + 48, "警告"
End Sub
Private Sub Form_Unload(Cancel As Integer)
Close #2
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -