📄 frmmain.frm
字号:
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Begin VB.Form frmMain
Caption = "Serial Port Send And Recieve"
ClientHeight = 3855
ClientLeft = 60
ClientTop = 345
ClientWidth = 8895
LinkTopic = "Form1"
ScaleHeight = 3855
ScaleWidth = 8895
StartUpPosition = 2 'CenterScreen
Begin VB.ComboBox cmbBaudRate
Height = 315
ItemData = "frmMain.frx":0000
Left = 1080
List = "frmMain.frx":0002
TabIndex = 25
Top = 1440
Width = 1095
End
Begin VB.CommandButton cmdUpdateBaud
Caption = "Update Baud"
Enabled = 0 'False
Height = 375
Left = 2280
TabIndex = 22
Top = 1440
Width = 1095
End
Begin VB.Frame fraPorts
Caption = "Comm Port"
Height = 615
Left = 2280
TabIndex = 0
Top = 120
Width = 3015
Begin VB.OptionButton optPort
Caption = "1"
Height = 255
Index = 5
Left = 2520
TabIndex = 21
TabStop = 0 'False
Top = 240
Visible = 0 'False
Width = 375
End
Begin VB.OptionButton optPort
Caption = "1"
Height = 255
Index = 4
Left = 2040
TabIndex = 20
TabStop = 0 'False
Top = 240
Visible = 0 'False
Width = 375
End
Begin VB.OptionButton optPort
Caption = "1"
Height = 255
Index = 3
Left = 1560
TabIndex = 19
TabStop = 0 'False
Top = 240
Visible = 0 'False
Width = 375
End
Begin VB.OptionButton optPort
Caption = "1"
Height = 255
Index = 2
Left = 1080
TabIndex = 18
TabStop = 0 'False
Top = 240
Visible = 0 'False
Width = 375
End
Begin VB.OptionButton optPort
Caption = "1"
Height = 255
Index = 1
Left = 600
TabIndex = 17
TabStop = 0 'False
Top = 240
Visible = 0 'False
Width = 375
End
Begin VB.OptionButton optPort
Caption = "1"
Height = 255
Index = 0
Left = 120
TabIndex = 16
TabStop = 0 'False
Top = 240
Visible = 0 'False
Width = 375
End
End
Begin VB.CommandButton cmdClearHistory
Caption = "Clear History"
Enabled = 0 'False
Height = 375
Left = 4200
TabIndex = 4
Top = 3360
Width = 1095
End
Begin VB.ListBox lstHistory
BeginProperty Font
Name = "Courier New"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 3630
Left = 5400
TabIndex = 15
Top = 120
Width = 3375
End
Begin VB.Frame fraBit
Caption = "Data Bits"
Height = 615
Left = 120
TabIndex = 10
Top = 120
Width = 2055
Begin VB.OptionButton optDataBits
Caption = "8"
Height = 255
Index = 8
Left = 1560
TabIndex = 14
Top = 240
Width = 375
End
Begin VB.OptionButton optDataBits
Caption = "7"
Height = 255
Index = 7
Left = 1080
TabIndex = 13
Top = 240
Width = 375
End
Begin VB.OptionButton optDataBits
Caption = "6"
Height = 255
Index = 6
Left = 600
TabIndex = 12
Top = 240
Width = 375
End
Begin VB.OptionButton optDataBits
Caption = "5"
Height = 255
Index = 5
Left = 120
TabIndex = 11
Top = 240
Width = 375
End
End
Begin VB.Frame fraMode
Caption = "Mode"
Height = 615
Left = 120
TabIndex = 7
Top = 720
Width = 2055
Begin VB.OptionButton optString
Caption = "String"
Height = 195
Left = 960
TabIndex = 9
Top = 270
Width = 735
End
Begin VB.OptionButton optBinary
Caption = "Binary"
Height = 255
Left = 120
TabIndex = 8
Top = 240
Width = 855
End
End
Begin VB.CommandButton cmdSend
Caption = "Send"
Enabled = 0 'False
Height = 375
Left = 4200
TabIndex = 2
Top = 1440
Width = 1095
End
Begin VB.TextBox txtSend
Height = 285
Left = 2280
TabIndex = 1
Top = 1080
Width = 3015
End
Begin VB.TextBox txtRead
BeginProperty Font
Name = "Arial Narrow"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1095
Left = 120
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 3
Top = 2160
Width = 5175
End
Begin VB.CommandButton cmdRead
Caption = "Read"
Enabled = 0 'False
Height = 375
Left = 2040
TabIndex = 6
Top = 3360
Width = 1095
End
Begin MSCommLib.MSComm comSerial
Left = 3480
Top = 1440
_ExtentX = 1005
_ExtentY = 1005
_Version = 393216
DTREnable = -1 'True
NullDiscard = -1 'True
BaudRate = 38400
InputMode = 1
End
Begin VB.CommandButton cmdExit
Caption = "Exit"
Height = 375
Left = 120
TabIndex = 5
Top = 3360
Width = 1095
End
Begin VB.Frame fraDataRead
Caption = "Data Recieved"
Height = 255
Left = 120
TabIndex = 23
Top = 1920
Width = 5175
End
Begin VB.Frame fraSend
Caption = "Data To Send"
Height = 255
Left = 2280
TabIndex = 24
Top = 840
Width = 3015
End
Begin VB.Label lblBaud
Alignment = 1 'Right Justify
Caption = "Baud Rate"
Height = 255
Left = 120
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -