101 vb.net Samples

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.

Code:
 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 doesnt it doesnt 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.....
 
Great! :cool:

Remeber the 1st law of computers

"If it works doesnt matter how it works"

And the 2nd

"If it works dont change it!"

:)

See you in the future

ByeZ
BiZ
 
Thanks. I have also found out that using this style of sending a message to one user. You can do certain irc things like a kick. Ive done this and it works. It works great. You can also do other things using this...
 
Back
Top