You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the WinForms client to send data , the _stream.DataAvailable in Client.Receiver is never true, meaning that there is never a reply from the server we pick up.
else if (_stream.DataAvailable){varb=newbyte[1024];varbytes= _stream.Read(b,0, b.Length);
...
That probably means that when the button is clicked its run on some other thread because it works with the ClientConsole
privatevoidbtnSendData_Click(objectsender,EventArgse){// This call does not fire the MainDataReceived event in WinForms but does in the console app!GenericResult<bool>test= client.SendData(txtDataToSend.Text);}
Here is something I think could be of help but I haven't figured it out yet, Control.Invoke Method (see example at the bottom)
Somebody go any ideas?
The text was updated successfully, but these errors were encountered:
When using the WinForms client to send data , the _stream.DataAvailable in Client.Receiver is never true, meaning that there is never a reply from the server we pick up.
That probably means that when the button is clicked its run on some other thread because it works with the ClientConsole
Here is something I think could be of help but I haven't figured it out yet, Control.Invoke Method (see example at the bottom)
Somebody go any ideas?
The text was updated successfully, but these errors were encountered: