📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form Form2
Caption = "选项"
ClientHeight = 3255
ClientLeft = 60
ClientTop = 450
ClientWidth = 6480
LinkTopic = "Form2"
ScaleHeight = 3255
ScaleWidth = 6480
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text4
Height = 495
Left = 3960
TabIndex = 8
Text = "1001"
Top = 1080
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 495
Left = 2760
TabIndex = 6
Top = 2640
Width = 1215
End
Begin VB.TextBox Text3
Height = 375
Left = 2160
TabIndex = 5
Text = "飞天"
Top = 1920
Width = 2895
End
Begin VB.TextBox Text2
Height = 375
Left = 2040
TabIndex = 4
Text = "1005"
Top = 1080
Width = 1215
End
Begin VB.TextBox Text1
Height = 375
Left = 2160
TabIndex = 3
Text = "172.19.62.54"
Top = 240
Width = 2775
End
Begin VB.Label Label4
Caption = "监听:"
Height = 495
Left = 3360
TabIndex = 7
Top = 1080
Width = 975
End
Begin VB.Label Label3
Caption = "呢称:"
Height = 495
Left = 1080
TabIndex = 2
Top = 1920
Width = 1215
End
Begin VB.Label Label2
Caption = "主机IP:"
Height = 495
Left = 1080
TabIndex = 1
Top = 360
Width = 1215
End
Begin VB.Label Label1
Caption = "端口号:"
Height = 495
Left = 1080
TabIndex = 0
Top = 1080
Width = 1215
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim aa As Integer
If Text1.Text <> "" Then
If Text2.Text <> "" Then
If Text3.Text <> "" Then
Form1.Winsock1.RemoteHost = Text1.Text
Form1.Winsock1.RemotePort = Text2.Text
aa = Text4.Text
Form1.Winsock1.Bind aa
Form1.List1.AddItem Text3.Text
Form1.List1.Visible = True
Form1.Label1.Visible = True
Form1.List2.Visible = True
Form1.Command1.Visible = True
Form1.Label2.Visible = True
Form2.Hide
Form1.option.Visible = False
Form1.Text1.Visible = True
End If
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -