Conclusion (yay):
well i just wanted to say that i got it working here it the code. This is the only way that i could get it working.
This sends the message out to the users, and then if there name equals the Label, it displays the text. But if it doesn't it doesn't display the text. This took me a while to figure out. It may seem really dumb the way I had to do this but it is the only way i have found out, and it works best.....
well i just wanted to say that i got it working here it the code. This is the only way that i could get it working.
Visual Basic:
'The Server side contains this:
Private Sub Buttonwhatever_click(etc.) Handles etc.
Dim namee As String
namee = "george" 'you could change this to a textbox
Broadcast("ONE|" & "Hello there, i c that it works :) " & namee) ' the message can also be a textbox
End Sub
'the client side contains this
'note include this in the area where it is declaring incoming messages...
Case "ONE"
Dim namee As String
namee = Label3.Text 'make it so that frmConnectuser makes that say what the persons name is...
If dataArray(1).EndsWith(namee) Then
dataArray(1).Replace(namee, "")
DisplayText("The Admin: " & dataArray(1) & Chr(13) & Chr(10))
DisplayText("The Admin: It works yeah!")
End If
This sends the message out to the users, and then if there name equals the Label, it displays the text. But if it doesn't it doesn't display the text. This took me a while to figure out. It may seem really dumb the way I had to do this but it is the only way i have found out, and it works best.....