📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form frmSetCom
BorderStyle = 3 'Fixed Dialog
Caption = "串行口设置"
ClientHeight = 1005
ClientLeft = 45
ClientTop = 330
ClientWidth = 2820
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1005
ScaleWidth = 2820
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin VB.OptionButton Option1
Caption = "COM4"
Height = 255
Index = 3
Left = 1560
TabIndex = 3
Top = 600
Width = 1215
End
Begin VB.OptionButton Option1
Caption = "COM3"
Height = 255
Index = 2
Left = 1560
TabIndex = 2
Top = 240
Width = 1215
End
Begin VB.OptionButton Option1
Caption = "COM2"
Height = 255
Index = 1
Left = 240
TabIndex = 1
Top = 600
Width = 1215
End
Begin VB.OptionButton Option1
Caption = "COM1"
Height = 255
Index = 0
Left = 240
TabIndex = 0
Top = 240
Width = 1215
End
End
Attribute VB_Name = "frmSetCom"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Option1(ComPortN - 1).Value = True
End Sub
Private Sub Form_Unload(Cancel As Integer)
saveREG
End Sub
Private Sub Option1_Click(Index As Integer)
ComPortN = Index + 1
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -