⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.frm

📁 tcpip客户端软件
💻 FRM
字号:
VERSION 5.00
Object = "{248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0"; "MSWINSCK.OCX"
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   5280
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   6615
   LinkTopic       =   "Form1"
   ScaleHeight     =   5280
   ScaleWidth      =   6615
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text3 
      Height          =   3255
      Left            =   3960
      TabIndex        =   4
      Top             =   960
      Width           =   2415
   End
   Begin VB.TextBox Text2 
      Height          =   3135
      Left            =   240
      TabIndex        =   3
      Top             =   960
      Width           =   2295
   End
   Begin VB.TextBox Text1 
      Height          =   495
      Left            =   1200
      TabIndex        =   2
      Top             =   120
      Width           =   1695
   End
   Begin VB.CommandButton Command2 
      Caption         =   "退出"
      Height          =   495
      Left            =   4680
      TabIndex        =   1
      Top             =   4440
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "连接"
      Height          =   495
      Left            =   720
      TabIndex        =   0
      Top             =   4440
      Width           =   1215
   End
   Begin MSWinsockLib.Winsock Winsock1 
      Left            =   4320
      Top             =   0
      _ExtentX        =   741
      _ExtentY        =   741
      _Version        =   393216
      RemoteHost      =   "192.168.1.2"
      RemotePort      =   80
      LocalPort       =   2000
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Winsock1.Connect
End Sub

Private Sub Command2_Click()
End
End Sub

Private Sub Form_Load()
Text2.Visible = False
Text3.Visible = False
Winsock1.RemotePort = 2000
Winsock1.RemoteHost = "LSY"
End Sub

Private Sub Text1_Change()
Winsock1.RemoteHost = Text1.Text
End Sub

Private Sub Winsock1_Connect()
Text2.Visible = True
Text3.Visible = True
Command2.Visible = False
End Sub

Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim tmpstr As String
Winsock1.GetData tmpstr
Text3.Text = tmpstr
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -