📄 form_setup.frm
字号:
VERSION 5.00
Begin VB.Form Form_SetUp
BorderStyle = 1 'Fixed Single
Caption = "Form1"
ClientHeight = 1590
ClientLeft = 45
ClientTop = 330
ClientWidth = 4080
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1590
ScaleWidth = 4080
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 2400
TabIndex = 3
Top = 960
Width = 855
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 960
TabIndex = 2
Top = 960
Width = 855
End
Begin VB.TextBox Text1
Height = 375
Left = 1560
TabIndex = 0
Top = 240
Width = 1575
End
Begin VB.Label Label1
Caption = "监测周期: (毫秒)"
Height = 375
Left = 480
TabIndex = 1
Top = 240
Width = 975
End
End
Attribute VB_Name = "Form_SetUp"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim Pioriodic As Long
Pioriodic = Int(Text1.Text)
If Pioriodic < 65535 And Pioriodic > 0 Then
frmTerminal.Timer1.Interval = Pioriodic * 10
Else:
MsgBox "应设在0-6500之间"
Text1.Text = ""
End If
Unload Me
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -