Hello everyone!
I'm working on a class that creates a communication between multiple
computers. When a client connects he has an ID which is a string.
Now I need to show the user ID in a text box and write "SomeUser Connected!" (Replace SomeUser with the ID), this is the sub:
Now the problem is that my textbox only shows "SomeUser" and doesn't continue the string as it should display: "SomeUser connected".Code:Public Sub onConnection(ByVal ID As String) Handles Host.onConnection TextBox1.AppendText(ID & " connected" & vbNewLine) End Sub
Any ideas how it happens? it seems that everything is fine!
Thank you very much!




Reply With Quote