📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form Form2
Caption = "采集通道设置"
ClientHeight = 3855
ClientLeft = 60
ClientTop = 345
ClientWidth = 5070
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form2"
ScaleHeight = 3855
ScaleWidth = 5070
StartUpPosition = 2 '屏幕中心
Begin VB.VScrollBar VScroll1
Height = 975
LargeChange = 5
Left = 4080
Max = 60
TabIndex = 6
Top = 1800
Value = 5
Width = 255
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "黑体"
Size = 18
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 420
Left = 3120
TabIndex = 5
Text = "2"
Top = 2040
Width = 975
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 420
Left = 1560
TabIndex = 2
Top = 3000
Width = 975
End
Begin VB.ComboBox Combo1
BeginProperty Font
Name = "黑体"
Size = 18
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 480
ItemData = "Form2.frx":0000
Left = 3120
List = "Form2.frx":0010
TabIndex = 0
Text = "1"
Top = 1080
Width = 1095
End
Begin VB.Label Label3
Caption = "S"
Height = 255
Left = 4560
TabIndex = 4
Top = 2160
Width = 255
End
Begin VB.Label Label2
Caption = "自动采集时间"
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 480
TabIndex = 3
Top = 2040
Width = 2295
End
Begin VB.Label Label1
Caption = "采集通道:COM"
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 480
TabIndex = 1
Top = 1080
Width = 2415
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Form1.MSComm1.CommPort = Combo1.Text
If Text1.Text > 60 Then Text1.Text = 60
If Text1.Text <= 0 Then Text1.Text = 0.1
Form1.Timer1.Interval = 1000 * Int(Text1.Text * 10) / 10
Unload Form2
End Sub
Private Sub Form_Load()
Combo1.Text = Form1.MSComm1.CommPort
Text1.Text = Int(Form1.Timer1.Interval / 1000 * 10) / 10
VScroll1.Value = Text1.Text
End Sub
Private Sub VScroll1_Change()
Text1.Text = VScroll1.Value
If VScroll1.Value = 0 Then Text1.Text = 1
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -