Pls potete aiutartarmi almeno con questo?
In Parte funziona tutto ho solo un problema
Il Client si connette Perfettamente
e fa a dovere tutto quello che deve fare
c'è solo un problema
E un form
Ho messo l'evento dell'invio in
Form Load giusto per provare
Ma poi quando si avvia il form
Non appare rimane così bloccato
in hide
Appena chiudo il Server mi viene mostrato il forum
questo e il codice
qualche suggerimento?
Codice PHP:
Try
Dim tcpClient As New System.Net.Sockets.TcpClient()
tcpClient.Connect("127.0.0.1", 1300)
Dim networkStream As NetworkStream = tcpClient.GetStream()
'Controlla Se iol server Esiste
If networkStream.CanWrite And networkStream.CanRead Then
Dim sendBytes As [Byte]() = Encoding.ASCII.GetBytes("Connesso")
networkStream.Write(sendBytes, 0, sendBytes.Length)
Dim bytes(tcpClient.ReceiveBufferSize) As Byte
networkStream.Read(bytes, 0, CInt(tcpClient.ReceiveBufferSize))
Dim returndata As String = Encoding.ASCII.GetString(bytes)
MsgBox(returndata)
Return
Else
End If
Catch
MsgBox("Il Server Protrebbe essere Offline")
End Try