Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to have ASYNC MessageBox?

Or do I have to use threads? (C++)

like image 776
Vladimir Avatar asked Aug 24 '10 11:08

Vladimir


People also ask

Is MessageBox show a modal dialog window?

Displays a message window, also known as a dialog box, which presents a message to the user. It is a modal window, blocking other actions in the application until the user closes it. A MessageBox can contain text, buttons, and symbols that inform and instruct the user.

What is MessageBox class explain MessageBox () in detail?

A message box is a prefabricated modal dialog box that displays a text message to a user. You show a message box by calling the static Show method of the MessageBox class. The text message that is displayed is the string argument that you pass to Show.

Which of the following is default button of MessageBox control?

Provides various button combination like Ok, OkCancel, YesNo, YesNoCancel, RetryCancel and much more. By default, it shows only Ok button.


2 Answers

No there isn't. Alternatively, you can create a "modeless dialog box".

like image 93
ChrisW Avatar answered Sep 29 '22 08:09

ChrisW


Message boxes are modal dialogs. The whole idea is that they aren't asynchronous. Assuming it was possible to do this (which it is, given the right amount of tinkering), would you want to confuse users with something that looks familiar but acts in a different way to what they expect? The question is, why do you want to do this? maybe there is a better solution.

like image 35
Michael Baldry Avatar answered Sep 29 '22 08:09

Michael Baldry