A message box is a prefabricated modal dialog box that displays a text message to a user.
Questions tagged [messagebox]
1861 questions
36
votes
13 answers
ASP.NET Web Application Message Box
In an asp.net windows forms application, in the C# code behind you can use:
MessageBox.Show("Here is my message");
Is there any equivalent in a asp.net web application?
Can I call something from the C# code behind that will display a message box…

Baxter
- 5,633
- 24
- 69
- 105
35
votes
4 answers
Is there a non-blocking version of MessageBox.Show (or something like it)?
Long-delayed update
I'm accepting MUG4N's answer to this question, and I also want to respond to some of the criticisms that were raised against it.
ChrisF said:
...you can't make UI calls directly from background threads.
This is a blanket…

Dan Tao
- 125,917
- 54
- 300
- 447
33
votes
4 answers
Bold text in MessageBox
How can I show the text in bold in the dialog displayed by MessageBox.Show, using C#?

Karthick
- 331
- 1
- 3
- 3
30
votes
4 answers
Show a message box from a class in c#?
How do you get a class to interact with the form to show a message box?

Ash
- 8,583
- 10
- 39
- 52
30
votes
5 answers
MessageBox.Show-- font change?
I'm using the MessageBox class to show errors to users, and while that might not be the right behavior, it's very convenient. This is a touchscreen application, however, so I need the 'ok' button to be much larger than it is (curse my inordinately…

mmr
- 14,781
- 29
- 95
- 145
29
votes
5 answers
Dialog MessageBox sometimes hidden behind the main form
Some of our non-technical users are having problems where a dialog MessageBox in our application can sometimes be displayed behind the main form and the application does not accept any input until the messagebox (which they can't see) is…

sgmoore
- 15,694
- 5
- 43
- 67
28
votes
6 answers
MessageBox Buttons?
How would I say if the yes button on the messagebox was pressed do this,that and the other? In C#.

6TTW014
- 627
- 2
- 11
- 24
27
votes
4 answers
System.Windows.MessageBox vs System.Windows.Forms.MessageBox
I am having trouble finding out what the key differences are between the two message boxes. What is the difference between System.Windows.MessageBox and System.Windows.Forms.MessageBox?

MisterXero
- 1,098
- 2
- 9
- 17
27
votes
5 answers
Clickable URL in a Winform Message Box?
I want to display a link to help in a message box. By default the text is displayed as a non-selectable string.

Jeff
- 8,020
- 34
- 99
- 157
25
votes
4 answers
MessageBox buttons - set language?
When you use MessageBox.Show() you have a selection of MessageBoxButtons to choose from. The buttons available are an enum, and give you options like "Yes No", "OK Cancel", etc.
When I am using, for instance, Norwegian message text the user still…

Frode Lillerud
- 7,324
- 17
- 58
- 69
25
votes
12 answers
Force to close MessageBox programmatically
Let me give you the background.
We have an Application(medium sized) that is using MessageBox.Show (....) at various places (in hundreds).
These message boxes are part of workflow and being used for informing,warning or taking input from an user.…

NYK
- 271
- 1
- 3
- 3
25
votes
7 answers
Python PyQt5: How to show an error message with PyQt5
In normal Python (3.x) we always use showerror() from the tkinter module to display an error message but what should I do in PyQt5 to display exactly the same message type as well?

Ramón Wilhelm
- 967
- 2
- 18
- 39
25
votes
7 answers
Create a Modeless Messagebox
How might one go about creating a Modeless MessageBox? Do I have to just create my own Windows Form class and use that? If so, is there an easy way of adding a warning icon (rather than inserting my own image of one) and resizing based on text…

Smashery
- 57,848
- 30
- 97
- 128
25
votes
1 answer
WPF : Dispatcher processing has been suspended, but messages are still being processed
I Have a WPF Project, When i try to Run This Code On RowLoad Event I got below Error :
private void ParentGridView_OnRowLoaded(object sender, EventArgs e)
{
try
{
if(((RadGridView)sender).Columns != null)
{
…

Amin Eshtiaghi
- 253
- 1
- 3
- 6
24
votes
6 answers
c# select text from messagebox.show popup
i've been searching on google and stackoverflow for 2hours now. There has to be something i am just simply overlooking. Is there an easy way to make the text selectable in a messagebox? As of right now when i call a MessageBox.Show() i can not copy…

toosweetnitemare
- 2,226
- 8
- 33
- 44