i do this is it look
VB Code:
Public Sub winsock_connect() MsgBox "You Are Now Connected " Winsock.SendData "N:" & frmlogin.txtnick.Text txtchat.Text = " " End Sub Private Sub cmdSend_click() Winsock.SendData frmlogin.txtnick.Text & ": " & txtmsg.Text 'txtchat.Text = txtchat.Text & vbNewLine & frmlogin.txtnick.Text & ": " & txtmsg.Text txtmsg.Text = "" end sub
server does this
VB Code:
If strRecivedData = "N:" Then txtchat.Text = strRecivedData & " has joined chat." server(SocketCheck).SendData ""




Reply With Quote