-2
我必須使用vb 2010的網絡程序。我試圖在標籤文本中顯示ReadLine流,但它不會顯示。請幫忙。label.text不會顯示readline
Dim tcpCli As TcpClient = tcpList.AcceptTcpClient() 'claiming tcp listener to accept the tcp client
Dim ns As NetworkStream = tcpCli.GetStream ' assign ns as network stream and assign as client to get nw stream
Dim sr As New StreamReader(ns)
''''''''' get data from client '''''''''''''''
Dim list As New List(Of String)
Dim receivedData As String = sr.ReadLine()
MsgBox("Operation Performed!!!", MsgBoxStyle.Information, "Accepted by client")
Form1.lblRreadStream.Text = receivedData.ToString() '<< this is the line i'm stuck in with.
請。我非常需要.. – Nerdar 2012-03-21 20:54:04
消息框顯示嗎? – flo 2012-03-21 21:10:24
是的..它顯示 – Nerdar 2012-03-21 21:20:45