📄 frmmain.frm
字号:
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Begin VB.Form frmMain
Caption = "Serial Communication Test Utility"
ClientHeight = 10695
ClientLeft = 60
ClientTop = 630
ClientWidth = 13785
Icon = "frmMain.frx":0000
LinkTopic = "Form1"
ScaleHeight = 10695
ScaleWidth = 13785
StartUpPosition = 2 'CenterScreen
Tag = "15480"
Begin VB.Frame fraPort
Caption = "Communication Port B Is Closed"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 10575
Index = 1
Left = 6960
TabIndex = 129
Top = 25
Width = 6735
Begin VB.Frame fraSettings
Caption = "Port 5 Settings 57600, Even, 8, 2, String, XOn/XOff"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1815
Index = 1
Left = 120
TabIndex = 225
Top = 360
Width = 6495
Begin VB.Frame fraSend
Caption = "Data To Send"
Height = 1455
Index = 1
Left = 120
TabIndex = 226
Top = 240
Visible = 0 'False
Width = 6255
Begin VB.TextBox txtSendTime
Alignment = 2 'Center
Enabled = 0 'False
Height = 285
Index = 1
Left = 2520
MaxLength = 5
TabIndex = 257
Text = "0"
Top = 1035
Width = 615
End
Begin VB.CommandButton cmdSettings
Caption = "Settings"
Height = 375
Index = 1
Left = 5400
TabIndex = 234
Top = 960
Width = 735
End
Begin VB.TextBox txtMultiple
Alignment = 2 'Center
Enabled = 0 'False
Height = 285
Index = 1
Left = 1680
MaxLength = 6
TabIndex = 233
Text = "0"
Top = 1035
Width = 735
End
Begin VB.CommandButton cmdMultiSend
Caption = "Start"
Enabled = 0 'False
Height = 375
Index = 1
Left = 4560
TabIndex = 232
Top = 960
Width = 735
End
Begin VB.ComboBox cmbMultiSend
Height = 315
Index = 1
ItemData = "frmMain.frx":0442
Left = 3240
List = "frmMain.frx":044F
TabIndex = 231
Text = "Once"
Top = 1005
Width = 1215
End
Begin VB.TextBox txtAscii
Alignment = 2 'Center
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 1
Left = 1080
MaxLength = 3
TabIndex = 230
Top = 960
Width = 495
End
Begin VB.CommandButton cmdAscii
Caption = "Char Code"
Enabled = 0 'False
Height = 375
Index = 1
Left = 120
TabIndex = 229
Top = 960
Width = 975
End
Begin VB.CommandButton cmdSend
Caption = "Send"
Height = 375
Index = 1
Left = 5400
TabIndex = 228
Top = 360
Width = 735
End
Begin VB.TextBox txtSend
Height = 375
Index = 1
Left = 120
TabIndex = 227
Top = 360
Width = 5175
End
Begin VB.Label lblSendInterval
AutoSize = -1 'True
Caption = "Interval"
Height = 195
Index = 1
Left = 2565
TabIndex = 236
Top = 840
Width = 525
End
Begin VB.Label lblTimes
AutoSize = -1 'True
Caption = "Iterations"
Height = 195
Index = 1
Left = 1725
TabIndex = 235
Top = 840
Width = 645
End
End
Begin VB.ComboBox cmbHandShake
Height = 315
Index = 1
ItemData = "frmMain.frx":046F
Left = 4920
List = "frmMain.frx":047F
TabIndex = 249
Top = 600
Width = 1335
End
Begin VB.ComboBox cmbBaudRate
Height = 315
Index = 1
ItemData = "frmMain.frx":04A2
Left = 1200
List = "frmMain.frx":04D3
TabIndex = 248
Top = 600
Width = 975
End
Begin VB.ComboBox cmbStopBits
Height = 315
Index = 1
ItemData = "frmMain.frx":0539
Left = 4080
List = "frmMain.frx":0543
TabIndex = 247
Top = 600
Width = 735
End
Begin VB.ComboBox cmbDataBits
Height = 315
Index = 1
ItemData = "frmMain.frx":054D
Left = 3240
List = "frmMain.frx":0560
TabIndex = 246
Top = 600
Width = 735
End
Begin VB.ComboBox cmbParity
Height = 315
Index = 1
ItemData = "frmMain.frx":0573
Left = 2280
List = "frmMain.frx":0586
TabIndex = 245
Top = 600
Width = 855
End
Begin VB.ComboBox cmbPort
Height = 315
Index = 1
ItemData = "frmMain.frx":05A8
Left = 240
List = "frmMain.frx":05AA
TabIndex = 244
Top = 600
Width = 855
End
Begin VB.Frame fraInputMode
Caption = "Input"
Height = 615
Index = 1
Left = 240
TabIndex = 241
Top = 960
Width = 1815
Begin VB.OptionButton optString
Caption = "String"
Height = 255
Index = 1
Left = 120
TabIndex = 243
Top = 240
Width = 735
End
Begin VB.OptionButton optBinary
Caption = "Binary"
Height = 255
Index = 1
Left = 960
TabIndex = 242
Top = 240
Width = 735
End
End
Begin VB.CommandButton cmdOpen
Caption = "Open"
Height = 495
Index = 1
Left = 3480
TabIndex = 240
Top = 1080
Width = 855
End
Begin VB.CommandButton cmdClose
Caption = "Close"
Enabled = 0 'False
Height = 495
Index = 1
Left = 4440
TabIndex = 239
Top = 1080
Width = 855
End
Begin VB.CommandButton cmdShowSend
Caption = "Send Data"
Enabled = 0 'False
Height = 495
Index = 1
Left = 5400
TabIndex = 238
Top = 1080
Width = 855
End
Begin VB.ComboBox cmbParityReplace
BeginProperty Font
Name = "Courier New"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 390
Index = 1
Left = 2160
TabIndex = 237
Top = 1192
Width = 1215
End
Begin VB.Label lblHandShake
Alignment = 2 'Center
AutoSize = -1 'True
Caption = "Hand Shaking"
Height = 195
Index = 1
Left = 5077
TabIndex = 256
Top = 360
Width = 1020
End
Begin VB.Label lblBaudRate
Alignment = 2 'Center
AutoSize = -1 'True
Caption = "Baud Rate"
Height = 195
Index = 1
Left = 1305
TabIndex = 255
Top = 360
Width = 765
End
Begin VB.Label lblStopBits
Alignment = 2 'Center
AutoSize = -1 'True
Caption = "Stop Bits"
Height = 195
Index = 1
Left = 4125
TabIndex = 254
Top = 360
Width = 630
End
Begin VB.Label lblDataBits
Alignment = 2 'Center
AutoSize = -1 'True
Caption = "Data Bits"
Height = 195
Index = 1
Left = 3285
TabIndex = 253
Top = 360
Width = 645
End
Begin VB.Label lblParity
Alignment = 2 'Center
AutoSize = -1 'True
Caption = "Parity"
Height = 195
Index = 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -