954,525 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

messagebox

Hi,
now program show Messagebox and wait user decision.
How make, that program don't wait?
Show Messagebox, ant keep going.

Lolalola
Junior Poster in Training
76 posts since Jul 2009
Reputation Points: 10
Solved Threads: 0
 
tonymuilenburg
Light Poster
42 posts since Apr 2010
Reputation Points: 8
Solved Threads: 2
 

Maybe there is another way of showing the information for the new window?
I need to display text only, no action from the user does not ..

Lolalola
Junior Poster in Training
76 posts since Jul 2009
Reputation Points: 10
Solved Threads: 0
 

A MessageBox is what we call a modal dialog(window).
It means you have to respond to it somehow before you can continue.
A print dialog is another example of this. You wanted to print something, so this dialog shows up. Now you can set several settings of a printer and click the OK button to print. If you somehow decided not to print, click the Cancel button. Only after this you can continue with your program.
Another type of dialog(window) is called modeless. It can stay on screen while doing other things. A typical example is the Quick Find dialog in Visual Studio. Suggest you do some search on both in Google or MSDN.
If you can't get a hang of it, just return here with your questiions. Succes!

ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
 

tonymuilenburg has it right, spawn another thread to do the work then show the dialog to continue with whatever logic you require.

Fungus1487
Posting Pro in Training
459 posts since Apr 2007
Reputation Points: 66
Solved Threads: 56
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: