主题:[讨论]关于VB的,求救
Private Sub cmdConnect_Click()
With Winsock1
.RemoteHost = Trim(txtRemoteHost)
.RemotePort = Trim(txtRemotePort)
.LocalPort = Trim(txtLocalPort)
.Bind .LocalPort
End With
txtLocalPort.Locked = True
End Sub
Private Sub Form_Load()
txtLocalIp.Text = Winsock1.LocalIP
End Sub
Private Sub txtSend_KeyPress(keyAscii As Integer)
If keyAscii = 13 Then
Winsock1.SendData txtSend.Text
End If
End Sub
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim New_Text As String
Winsock1.GetData New_Text
lblReceived.Caption = New_Text
End Sub
有没有好心的朋友,给我一句句解释,因为我们老师实在BT,小妹不是计算机专业的,真的不懂
希望高手,能帮帮忙,在此谢谢
With Winsock1
.RemoteHost = Trim(txtRemoteHost)
.RemotePort = Trim(txtRemotePort)
.LocalPort = Trim(txtLocalPort)
.Bind .LocalPort
End With
txtLocalPort.Locked = True
End Sub
Private Sub Form_Load()
txtLocalIp.Text = Winsock1.LocalIP
End Sub
Private Sub txtSend_KeyPress(keyAscii As Integer)
If keyAscii = 13 Then
Winsock1.SendData txtSend.Text
End If
End Sub
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim New_Text As String
Winsock1.GetData New_Text
lblReceived.Caption = New_Text
End Sub
有没有好心的朋友,给我一句句解释,因为我们老师实在BT,小妹不是计算机专业的,真的不懂
希望高手,能帮帮忙,在此谢谢