📄 form1.frm
字号:
VERSION 5.00
Object = "{248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0"; "MSWINSCK.OCX"
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 4260
ClientLeft = 60
ClientTop = 345
ClientWidth = 5310
LinkTopic = "Form1"
ScaleHeight = 4260
ScaleWidth = 5310
StartUpPosition = 3 '窗口缺省
Begin MSWinsockLib.Winsock myClient
Left = 1560
Top = 1080
_ExtentX = 741
_ExtentY = 741
_Version = 393216
End
Begin VB.CommandButton cmdsenddata
Caption = "cmdsenddata"
Height = 1455
Left = 3000
TabIndex = 1
Top = 2520
Width = 1575
End
Begin VB.CommandButton cmdConnect
Caption = "cmdConnect"
Height = 1455
Left = 720
TabIndex = 0
Top = 2400
Width = 1335
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub form_Load()
myClient.RemoteHost = "127.0.0.1"
myClient.RemotePort = 5211
End Sub
Private Sub cmdConnect_Click()
myClient.Connect
End Sub
Private Sub cmdsenddata_Click()
myClient.SendData "hello"
End Sub
Private Sub myClient_Connect()
Debug.Print "success!"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -