ccdubs Posted October 1, 2012 Posted October 1, 2012 If I have the following code within a priority 5 thread (that is called from another priority 5 thread), what is the sequence of operation. strResult = System.MessageBox(strActivationConfirmation,"YesNo")if ((strResult == "Yes").......endif[/CODE]I assume the pop-up opens and the thread pauses and waits for the operator response before the "if" statement is run? If this is the case, do all threads stop?
AzeoTech Posted October 1, 2012 Posted October 1, 2012 System.MessageBox() is one of the few UI things you can do from secondary threads. I'm not sure how Windows handles it, but it doesn't go through the regular UI message pump, so doesn't have to be called from the main UI thread. When run from a secondary thread, it works just like you would expect. All other threads, including the primary UI thread that draws the main page, will continue to run.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.