?? setfrm.frm
字號:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomct2.ocx"
Begin VB.Form setfrm
BorderStyle = 3 'Fixed Dialog
Caption = "設置"
ClientHeight = 2685
ClientLeft = 45
ClientTop = 330
ClientWidth = 4800
Icon = "Setfrm.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2685
ScaleWidth = 4800
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
Begin VB.Frame Frame1
Height = 2535
Left = 0
TabIndex = 0
Top = 0
Width = 4575
Begin VB.CommandButton cmdOkCancel
Cancel = -1 'True
Caption = "取消(&C)"
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 1
Left = 2640
TabIndex = 1
Top = 2040
Width = 975
End
Begin VB.CommandButton cmdOkCancel
Caption = "確定(&E)"
Default = -1 'True
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 0
Left = 720
TabIndex = 9
Top = 2040
Width = 975
End
Begin VB.Frame Frame3
Height = 135
Left = 360
TabIndex = 8
Top = 360
Width = 3855
End
Begin VB.TextBox txtCost
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 1920
TabIndex = 7
Text = "Text1"
Top = 600
Width = 1575
End
Begin VB.Frame Frame2
Height = 135
Left = 360
TabIndex = 5
Top = 1080
Width = 3855
End
Begin MSComCtl2.UpDown UpDown1
Height = 330
Left = 3000
TabIndex = 4
Top = 1320
Width = 225
_ExtentX = 476
_ExtentY = 582
_Version = 393216
BuddyControl = "txtLentNum"
BuddyDispid = 196614
OrigLeft = 2640
OrigTop = 1080
OrigRight = 2865
OrigBottom = 1455
Max = 100
SyncBuddy = -1 'True
BuddyProperty = 0
Enabled = -1 'True
End
Begin VB.TextBox txtLentNum
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 2160
TabIndex = 3
Text = "Text1"
Top = 1320
Width = 870
End
Begin VB.Label Label3
Caption = "元"
ForeColor = &H00FF0000&
Height = 375
Left = 3840
TabIndex = 10
Top = 720
Width = 375
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "超出一天罰款金額"
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 180
Left = 360
TabIndex = 6
Top = 720
Width = 1440
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "每人借書冊數"
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 180
Left = 600
TabIndex = 2
Top = 1440
Width = 1080
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 + -