?? frmsetup.frm
字號:
VERSION 5.00
Begin VB.Form FrmSetup
BorderStyle = 1 'Fixed Single
Caption = "參數設定"
ClientHeight = 3825
ClientLeft = 45
ClientTop = 330
ClientWidth = 4950
Icon = "FrmSetup.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3825
ScaleWidth = 4950
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 2880
TabIndex = 29
Top = 3360
Width = 735
End
Begin VB.CommandButton Command1
Caption = "確認"
Height = 375
Left = 1200
TabIndex = 28
Top = 3360
Width = 735
End
Begin VB.Frame Frame2
Caption = "時間表"
Height = 2175
Left = 240
TabIndex = 3
Top = 1080
Width = 4455
Begin VB.TextBox Text1
Height = 375
Index = 12
Left = 3480
TabIndex = 26
Top = 1560
Width = 495
End
Begin VB.TextBox Text1
Height = 375
Index = 11
Left = 2760
TabIndex = 25
Top = 1560
Width = 375
End
Begin VB.TextBox Text1
Height = 375
Index = 10
Left = 1560
TabIndex = 21
Top = 1560
Width = 495
End
Begin VB.TextBox Text1
Height = 375
Index = 9
Left = 840
TabIndex = 20
Top = 1560
Width = 375
End
Begin VB.TextBox Text1
Height = 375
Index = 8
Left = 3480
TabIndex = 18
Top = 960
Width = 495
End
Begin VB.TextBox Text1
Height = 375
Index = 7
Left = 2760
TabIndex = 17
Top = 960
Width = 375
End
Begin VB.TextBox Text1
Height = 375
Index = 6
Left = 1560
TabIndex = 13
Top = 960
Width = 495
End
Begin VB.TextBox Text1
Height = 375
Index = 5
Left = 840
TabIndex = 12
Top = 960
Width = 375
End
Begin VB.TextBox Text1
Height = 375
Index = 4
Left = 3480
TabIndex = 10
Top = 360
Width = 495
End
Begin VB.TextBox Text1
Height = 375
Index = 3
Left = 2760
TabIndex = 9
Top = 360
Width = 375
End
Begin VB.TextBox Text1
Height = 375
Index = 2
Left = 1560
TabIndex = 5
Top = 360
Width = 495
End
Begin VB.TextBox Text1
Height = 375
Index = 1
Left = 840
TabIndex = 4
Top = 360
Width = 375
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = ":"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Index = 5
Left = 3240
TabIndex = 27
Top = 1680
Width = 120
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "-----"
Height = 180
Index = 2
Left = 2160
TabIndex = 24
Top = 1560
Width = 450
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = ":"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Index = 4
Left = 1320
TabIndex = 23
Top = 1680
Width = 120
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "晚班:"
Height = 180
Index = 2
Left = 240
TabIndex = 22
Top = 1680
Width = 450
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = ":"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Index = 3
Left = 3240
TabIndex = 19
Top = 1080
Width = 120
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "-----"
Height = 180
Index = 1
Left = 2160
TabIndex = 16
Top = 960
Width = 450
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = ":"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Index = 2
Left = 1320
TabIndex = 15
Top = 1080
Width = 120
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "中班:"
Height = 180
Index = 1
Left = 240
TabIndex = 14
Top = 1080
Width = 450
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = ":"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Index = 1
Left = 3240
TabIndex = 11
Top = 480
Width = 120
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "-----"
Height = 180
Index = 0
Left = 2160
TabIndex = 8
Top = 480
Width = 450
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = ":"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Index = 0
Left = 1320
TabIndex = 7
Top = 480
Width = 120
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "早班:"
Height = 180
Index = 0
Left = 240
TabIndex = 6
Top = 480
Width = 450
End
End
Begin VB.Frame Frame1
Caption = "工作性質:"
Height = 855
Left = 240
TabIndex = 0
Top = 120
Width = 4455
Begin VB.OptionButton Option2
Caption = "三班制"
Height = 375
Left = 2280
TabIndex = 2
Top = 360
Width = 1455
End
Begin VB.OptionButton Option1
Caption = "五天工作制"
Height = 375
Left = 240
TabIndex = 1
Top = 360
Value = -1 'True
Width = 1215
End
End
End
Attribute VB_Name = "FrmSetup"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Setup_DB As Database
Dim Setup_RS As Recordset
Private Sub Command1_Click()
Setup_RS.Edit
If Option1.Value = True Then
Setup_RS.Fields(0) = "1"
Else
Setup_RS.Fields(0) = "2"
End If
For x = 1 To 12
Setup_RS.Fields(x) = Text1(x).Text
Next x
Setup_RS.Update
'Setup_RS.Close
'Setup_DB.Close
Unload Me
FrmMain.Show
End Sub
Private Sub Command2_Click()
'Setup_RS.Close
'Setup_DB.Close
Unload Me
FrmMain.Show
End Sub
Private Sub Form_Load()
Set Setup_DB = OpenDatabase(App.Path + "\setup.mdb")
Set Setup_RS = Setup_DB.OpenRecordset("參數設定")
If Setup_RS.Fields(0) = "1" Then
Option1.Value = True
For x = 9 To 12
Text1(x).Enabled = False
Next x
Else
Option2.Value = True
For x = 9 To 12
Text1(x).Enabled = True
Next x
End If
For x = 1 To 12
Text1(x).Text = Setup_RS.Fields(x)
Next x
End Sub
Private Sub Form_Unload(Cancel As Integer)
'Setup_RS.Close
'Setup_DB.Close
Unload Me
FrmMain.Show
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -