📄 frmmanual.frm
字号:
VERSION 5.00
Begin VB.Form FrmManual
Caption = "Form1"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
LockControls = -1 'True
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton CmdCancel
Caption = "取消"
Height = 495
Left = 2520
TabIndex = 5
Top = 1680
Width = 1215
End
Begin VB.CommandButton CmdSubmit
Caption = "确定"
Height = 495
Left = 720
TabIndex = 4
Top = 1680
Width = 1215
End
Begin VB.TextBox TxtHour
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1920
MaxLength = 2
TabIndex = 0
Text = "01"
Top = 840
Width = 375
End
Begin VB.TextBox TxtMinite
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 390
Left = 2640
MaxLength = 2
TabIndex = 1
Text = "00"
Top = 840
Width = 375
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "时间"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1080
TabIndex = 3
Top = 840
Width = 615
End
Begin VB.Label Label2
Alignment = 2 'Center
Caption = ":"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2400
TabIndex = 2
Top = 840
Width = 135
End
End
Attribute VB_Name = "FrmManual"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public ManualTimeHour As Byte
Public ManualTimeMinite As Byte
Private Sub CmdCancel_Click()
g_Cancel = True
Unload Me
End Sub
Private Sub CmdSubmit_Click()
ManualTimeHour = CByte(Val(TxtHour.Text))
ManualTimeMinite = CByte(Val(TxtMinite.Text))
g_Cancel = False
Unload Me
End Sub
Private Sub TxtHour_Change()
If Val(TxtHour.Text) > 23 Or Val(TxtHour.Text) < 0 Then
TxtHour.Text = "00"
End If
End Sub
Private Sub TxtMinite_Change()
If Val(TxtMinite.Text) > 59 Or Val(TxtMinite.Text) < 0 Then
TxtMinite.Text = "00"
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -