如何自动覆盖textbox中数据??
我用基于udp协议的winsock编程,把每次接收到的信息写入textbox中,如何让textbox自动覆盖上次信息,只显示本次接收到的信息?我的代码如下:Private Sub Form_Load()
With Winsock1
.RemoteHost = "172.23.88.219"
.Bind 7777
End With
End Sub
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim strData As String
Winsock1.GetData strData, vbString
Text3.Text = strData
End Sub
[ 本帖最后由 tjl904661699 于 2013-5-16 20:57 编辑 ]