Showdialog and threads

  • Thread starter Thread starter Duncan Mole
  • Start date Start date
D

Duncan Mole

Heres a puzzler. In my application I have a communications thread which can
throw up messages as they come in by Control.Invok'ing into the main thread
and showing a form with the text on it. The problem arises when a message
comes in while the main thread is in a dialog state. The message is
displayed but as the application is in a dialog state, event on the new form
are not processed - therefore I can't process the OK button to clase and
continue!

Any thoughts appreciated! I managed to miss Win32 and went straight to .NET
so my understanding of message loops is a little hazy!
 
Back
Top