📄 settingsform.frm
字号:
VERSION 5.00
Begin VB.Form SettingsForm
Caption = "通讯设置"
ClientHeight = 3165
ClientLeft = 60
ClientTop = 345
ClientWidth = 4995
LinkTopic = "Form2"
ScaleHeight = 3165
ScaleWidth = 4995
StartUpPosition = 2 'CenterScreen
Begin VB.Frame Frame2
Caption = "通讯设置"
Height = 1935
Left = 120
TabIndex = 10
Top = 720
Width = 2295
Begin VB.ComboBox ParityCombo
Height = 315
ItemData = "SettingsForm.frx":0000
Left = 960
List = "SettingsForm.frx":0013
Style = 2 'Dropdown List
TabIndex = 13
Top = 480
Width = 975
End
Begin VB.ComboBox BytesizeCombo
Height = 315
ItemData = "SettingsForm.frx":0035
Left = 960
List = "SettingsForm.frx":003F
Style = 2 'Dropdown List
TabIndex = 12
Top = 960
Width = 975
End
Begin VB.ComboBox StopbitsCombo
Height = 315
ItemData = "SettingsForm.frx":0049
Left = 960
List = "SettingsForm.frx":0056
Style = 2 'Dropdown List
TabIndex = 11
Top = 1440
Width = 975
End
Begin VB.Label Label1
Caption = "校验:"
Height = 255
Left = 120
TabIndex = 16
Top = 480
Width = 615
End
Begin VB.Label Label6
Caption = "数据位:"
Height = 255
Left = 120
TabIndex = 15
Top = 960
Width = 855
End
Begin VB.Label Label7
Caption = "停止位:"
Height = 255
Left = 120
TabIndex = 14
Top = 1440
Width = 735
End
End
Begin VB.CommandButton DoneButton
Caption = "&Close"
Default = -1 'True
Height = 375
Left = 3840
TabIndex = 9
Top = 2760
Width = 975
End
Begin VB.Frame Frame1
Caption = "超时设置"
Height = 1935
Left = 2520
TabIndex = 4
Top = 720
Width = 2415
Begin VB.ComboBox WriteTimeoutCombo
Height = 315
ItemData = "SettingsForm.frx":0065
Left = 1200
List = "SettingsForm.frx":007E
TabIndex = 6
Text = "1000"
Top = 1200
Width = 975
End
Begin VB.ComboBox ReadTimeoutCombo
Height = 315
ItemData = "SettingsForm.frx":00A4
Left = 1200
List = "SettingsForm.frx":00BD
TabIndex = 5
Text = "1000"
Top = 720
Width = 975
End
Begin VB.Label Label8
Caption = "写延时:"
Height = 255
Left = 240
TabIndex = 8
Top = 1200
Width = 735
End
Begin VB.Label Label9
Caption = "读延时:"
Height = 255
Left = 240
TabIndex = 7
Top = 720
Width = 735
End
End
Begin VB.ComboBox PortCombo
Height = 315
ItemData = "SettingsForm.frx":00E3
Left = 1200
List = "SettingsForm.frx":00F3
Style = 2 'Dropdown List
TabIndex = 1
Top = 210
Width = 975
End
Begin VB.ComboBox BaudRateCombo
Height = 315
ItemData = "SettingsForm.frx":0103
Left = 3600
List = "SettingsForm.frx":012B
TabIndex = 0
Text = "9600"
Top = 210
Width = 975
End
Begin VB.Label PortLabel
Caption = "端口号:"
Height = 255
Left = 360
TabIndex = 3
Top = 240
Width = 735
End
Begin VB.Label Label2
Caption = "波特率:"
Height = 255
Left = 2760
TabIndex = 2
Top = 240
Width = 735
End
End
Attribute VB_Name = "SettingsForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub DoneButton_Click()
Hide
End Sub
Private Sub Form_Load()
PortCombo.ListIndex = 0
BaudRateCombo.ListIndex = 6
BytesizeCombo.ListIndex = 0
StopbitsCombo.ListIndex = 0
ParityCombo.ListIndex = 0
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -