📄 cho.frm
字号:
VERSION 5.00
Begin VB.Form CHO
BorderStyle = 1 'Fixed Single
Caption = "新建连接"
ClientHeight = 1410
ClientLeft = 45
ClientTop = 435
ClientWidth = 4680
Icon = "CHO.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1410
ScaleWidth = 4680
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton B_CANCEL
Caption = "取消"
Height = 375
Left = 3360
TabIndex = 5
Top = 960
Width = 1215
End
Begin VB.CommandButton B_ok
Caption = "确认"
Enabled = 0 'False
Height = 375
Left = 2040
TabIndex = 4
Top = 960
Width = 1215
End
Begin VB.ComboBox list
BackColor = &H80000000&
Height = 300
Left = 1440
Style = 2 'Dropdown List
TabIndex = 1
Top = 480
Width = 3135
End
Begin VB.TextBox T_name
BackColor = &H80000000&
Height = 285
Left = 1440
TabIndex = 0
Top = 120
Width = 3135
End
Begin VB.Label Label2
Alignment = 1 'Right Justify
Caption = "使用端口(&P):"
Height = 255
Left = 120
TabIndex = 3
Top = 480
Width = 1215
End
Begin VB.Label Label1
Alignment = 1 'Right Justify
Caption = "连接名称(&N):"
Height = 255
Left = 120
TabIndex = 2
Top = 120
Width = 1215
End
End
Attribute VB_Name = "CHO"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub B_CANCEL_Click()
Unload Me
End Sub
Private Sub B_ok_Click()
If T_name.Text = "" Then
MsgBox "连接名称不能为空!请为新连接指定个名称!", vbOKOnly + vbInformation, "提示:"
T_name.SetFocus
Else
TCOM.COMNAME = CHO.T_name.Text
Unload Me
SETT2.Show
End If
End Sub
Private Sub Form_Load()
testcom
End Sub
Private Sub List_Click()
B_ok.Enabled = True
TCOM.COMPORT = list.Text
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -