c# - Not lock up the GUI on thread.sleep -


i'm writing multiple user server\client application.

essentially, implement chat room , allow users communicate each other. i've gotten application work between server\client far sending request server, checking incoming network connection, , responding immidiately.

however, client receive chat messages server, thing can think of running server on client. if this, however, client freeze , not able anything. plus, client not designed opening ports connect server.

what best recommendation on waiting on data server come client, without causing client lock up?

thanks!

(and also, i'm not \professional\ c# programmer, more of amateur, please don't give me complicated answers)

if you, use either background worker, or second thread. if don't want that, can use thread.suspend.

to start new thread:

using system.threading;  thread t = new thread() t.start; 

note: not recommended.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -