A message box is a prefabricated modal dialog box that displays a text message to a user.
Questions tagged [messagebox]
1743 questions
32
votes
14 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…
![](../../users/profiles/1144118.webp)
Baxter
- 5,033
- 21
- 64
- 104
29
votes
3 answers
Show message Box in .net console application
How to show a message box in a .net c# or vb console application ?
Something like:
Console.WriteLine("Hello World");
MessageBox.Show("Hello World");
or
Console.WriteLine("Hello")
MsgBox("Hello")
in c# and vb respectively.
Is it possible?
![](../../users/profiles/4282901.webp)
Syed Osama Maruf
- 1,565
- 2
- 18
- 34
29
votes
4 answers
Bold text in MessageBox
How can I show the text in bold in the dialog displayed by MessageBox.Show, using C#?
![](../../users/profiles/272546.webp)
Karthick
- 291
- 1
- 3
- 3
28
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?
![](../../users/profiles/84546.webp)
Ash
- 7,163
- 9
- 37
- 52
26
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#.
![](../../users/profiles/671492.webp)
6TTW014
- 607
- 2
- 11
- 22
26
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…
![](../../users/profiles/125759.webp)
sgmoore
- 14,470
- 5
- 37
- 65
26
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…
![](../../users/profiles/21981.webp)
mmr
- 14,271
- 28
- 89
- 142
26
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.
![](../../users/profiles/13338.webp)
Jeff
- 7,466
- 32
- 92
- 150
25
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…
![](../../users/profiles/561621.webp)
toosweetnitemare
- 2,036
- 7
- 29
- 42
23
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…
![](../../users/profiles/33431.webp)
Frode Lillerud
- 6,974
- 15
- 55
- 69
23
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…
![](../../users/profiles/14902.webp)
Smashery
- 49,979
- 30
- 90
- 123
23
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)
{
…
![](../../users/profiles/2826032.webp)
Amin Eshtiaghi
- 233
- 1
- 2
- 6
22
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?
![](../../users/profiles/571609.webp)
MisterXero
- 1,048
- 2
- 8
- 16
22
votes
2 answers
How to create Hyperlink in MessageBox.show?
I have tried creating a hyperlink in MessageBox in this way:
MessageBox.Show(
"test message",
"caption",
MessageBoxButtons.YesNo,
MessageBoxIcon.Information,
MessageBoxDefaultButton.Button1,
0,
**"http://google.com"**,
…
user2046417
21
votes
6 answers
How to translate the buttons in qmessagebox?
I have a QMessageBox like this:
QMessageBox::question(this, tr("Sure want to quit?"),
tr("Sure to quit?"), QMessageBox::Yes | QMessageBox::No);
How could I translate the Yes/No word? since there is no place to place a tr()?
![](../../users/profiles/4662072.webp)
Nicholas Yu
- 273
- 1
- 4
- 7