vb网络编程,用的是UDP协议,程序哪里出错了为何我发送的收不到 5
PrivateSubclient1_Click()client1.SendDataText1.TextEndSubPrivateSubForm_Load()client1...
Private Sub client1_Click()
client1.SendData Text1.Text
End Sub
Private Sub Form_Load()
client1.RemoteHost = "127.0.0.1"
client1.RemotePort = "8899"
client1.Connect
Label3.Caption = ""
Label1.Caption = "接收到的文字"
Label2.Caption = "要发送的文字"
Text1.Text = ""
End Sub
Private Sub form_unload(cancel As Integer)
client1.Close
End Sub
Private Sub client1_dataarrival(ByVal bytestotal As Long)
Dim str As String
client1.GetData str
Label3.Caption = str
client1.SendData Text1.Text
End Sub 展开
client1.SendData Text1.Text
End Sub
Private Sub Form_Load()
client1.RemoteHost = "127.0.0.1"
client1.RemotePort = "8899"
client1.Connect
Label3.Caption = ""
Label1.Caption = "接收到的文字"
Label2.Caption = "要发送的文字"
Text1.Text = ""
End Sub
Private Sub form_unload(cancel As Integer)
client1.Close
End Sub
Private Sub client1_dataarrival(ByVal bytestotal As Long)
Dim str As String
client1.GetData str
Label3.Caption = str
client1.SendData Text1.Text
End Sub 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询