web application中网络客户端中listbox中内容怎么显示的啊?
是这样的网络客户端:
Dim NewThread As Thread
Dim ThreadName As String
Dim Client As TcpClient
Dim Buffer() As Byte
Dim InBuff(100) As Byte
Dim Temp As String
NewThread = System.Threading.Thread.CurrentThread
ThreadName = NewThread.Name
'While True
Client = New TcpClient()
Try
Client.Connect("localhost", 8229)
Catch ex As Exception
SyncLock NewThread
ListBox1.Items.Add("不能连接到服务器,请检查网路!")
ListBox1.Items.Insert(ListBox1.Items.Count, "Connection to server failed with return code: " & ex.Message)
ListBox1.SelectedIndex = ListBox1.Items.Count - 1
End SyncLock
Exit Sub
End Try
单步时可以运行到这一步,可就是显示不出来,怎么回事啊
问题点数:0、回复次数:0Top




