I'm trying to figure out a program to display received data from a serial port. I'm able to view recieved data in a hyperterminal..but I need to be able to view it in VB ..like in a text box. The program that I have freezes everytime I run it. It is recognizing the port..but that's about all it will do.



Using COM3 As IO.Ports.SerialPort = _
My.Computer.Ports.OpenSerialPort("COM3")
Do
Dim Incoming As String = COM3.ReadLine()
If Incoming Is Nothing Then

TextBox2.Text = Nothing
Exit Do
Else
TextBox2.Text = 1
returnStr &= Incoming & vbCrLf
End If
Loop
COM3.Close()

End Using