Hi
Can someone please help me?
I'm trying to create a program to control an IP Wallboard (which is an LED screen, often used to scroll text 2 lines deep by about 30 characters long - traditionally red LED).
Firstly i tried connecting via WinSock which works perfectly! However I want it to work in the .NET way of doing things, which would mean using sockets. I've tried two ways from MSDN, and about another 3 ways from other examples i've found. I just can get it working! Could someone PLEASE PLEASE tell me why this isnt working? I've been trying to do it for 2 weeks now and its doing my head in.
I know this is probably in the wrong place, but its the only section where there is even a remote chance of it getting answered....So dont move it please.
Thanks
Can someone please help me?
I'm trying to create a program to control an IP Wallboard (which is an LED screen, often used to scroll text 2 lines deep by about 30 characters long - traditionally red LED).
Firstly i tried connecting via WinSock which works perfectly! However I want it to work in the .NET way of doing things, which would mean using sockets. I've tried two ways from MSDN, and about another 3 ways from other examples i've found. I just can get it working! Could someone PLEASE PLEASE tell me why this isnt working? I've been trying to do it for 2 weeks now and its doing my head in.
Visual Basic:
Private mobjClient As TcpClient
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
mobjClient = New TcpClient("172.28.48.150", 3500)
End Sub
Private Sub Send(ByVal Data As String)
Try
MsgBox("connected = " & mobjClient.Connected.ToString)
Dim w As New IO.StreamWriter(mobjClient.GetStream)
w.Write(Data) ' & vbCr)
w.Flush()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Private Sub btnMSDN_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMSDN.Click
Send("Hello")
End Sub
I know this is probably in the wrong place, but its the only section where there is even a remote chance of it getting answered....So dont move it please.
Thanks