Hi, i am new here..
i have a prablom i made a project (chat) with sockets its working all good,
when my friend connect and i try to send message i get crash and in the bug say this code wrong : and this line :
the red line is not good .. any one know how to fix the code and why i get crash ?
i have a prablom i made a project (chat) with sockets its working all good,
when my friend connect and i try to send message i get crash and in the bug say this code wrong : and this line :
VB.NET:
Public Sub ServerSendData()
Dim bytes() As Byte = ASCII.GetBytes(txtName.Text & ": " & frmClient.txtChat.Text)
[COLOR="Red"]ServerClientSocket.Send(bytes)[/COLOR]
With frmClient.txtChat
.SelectionStart = .Text.Length
.SelectedText = txtName.Text & ": " & frmClient.txTsend.Text & vbCrLf
End With
End Sub
the red line is not good .. any one know how to fix the code and why i get crash ?