I'm having a problem with the following excerpt:
dim tcpCli As New TcpClient
Dim ns As NetworkStream = tcpCli.GetStream
Dim sw As New StreamWriter(ns, System.Text.Encoding.Default)
Dim sr As New StreamReader(ns)
Dim result As String
result = sr.ReadLine
The problem is that the whole form hangs when on the last line, waiting for
an input. I want to have a button so that when waiting for an input, the
user can abort. I've tried threading to no avail. I've also tried
Application.DoEvents() before the read line.
Any ideas?
- Jerry