G
Guest
I want to write an synchronous method Logon(). The method will need to make
asynchronous calls - sending windows messages to other apps and waiting for
replies etc etc etc. I'm wondering what the best way write it as a
synchronous method is.
I can easily write a loop which goes: Thread.Sleep(awhile) until some state
has been changed by event handlers, but is that the best way?
asynchronous calls - sending windows messages to other apps and waiting for
replies etc etc etc. I'm wondering what the best way write it as a
synchronous method is.
I can easily write a loop which goes: Thread.Sleep(awhile) until some state
has been changed by event handlers, but is that the best way?