A message box is a prefabricated modal dialog box that displays a text message to a user.
Questions tagged [messagebox]
1861 questions
8
votes
4 answers
C# - Use form instead of messagebox
I am working on an application for work and I need a customized messagebox to appear. I have created a simple form called Alert.cs that I have styled the way I want and added one button with a click method of this.Close(). now I want it to behave…

Jake Sankey
- 4,977
- 12
- 39
- 53
8
votes
2 answers
How to show a message box for a specified time?
Is there a way to show a message box for a specified time (that means, the message box will close itself when the specified time elapses) ?

TLama
- 75,147
- 17
- 214
- 392
8
votes
4 answers
Python 3 Tkinter - Messagebox with a toplevel as master?
I've found that when a toplevel widget calls a messagebox dialog (like "showinfo"), the root window is showed up, over the toplevel. Is there a way to set the Toplevel window as the master of the messagebox dialog ?
Here is a script to reproduce…

Aelys
- 241
- 1
- 4
- 19
8
votes
6 answers
Get time process takes to complete in seconds?
My program runs a batch file in cmd.exe, after it finished I want to display a MessageBox to user saying Finished in #.## seconds,
I'm redirecting CMD output to a textbox using process.BeginOutputReadLine(), this is the code I tried:
if (e.Data ==…

Abraham
- 1,209
- 2
- 14
- 22
8
votes
4 answers
MessageBox in C# showing error
I was attempting to add MessageBox.Show(Message); and it was not found in my C# .net web application (button click method and also in Page_Load).An error showing like
'The name 'MessageBox' does not exist in the current context'
Do I need to add…

Sudha
- 2,078
- 6
- 28
- 53
8
votes
5 answers
(C++) MessageBox for Linux like in MS Windows
I need to implement a simple graphical message box for a Linux (SDL) application similar to the Windows MessageBox in C++ (gcc/g++ 4.4.0). All it needs to do is to display a caption, a message and an ok or close button and to return to the calling…

Razzupaltuff
- 2,250
- 2
- 21
- 37
8
votes
6 answers
Compile simple string
Was just wondering if there are any built in functions in c++ OR c# that lets you use the compiler at runtime? Like for example if i want to translate:
!print "hello world";
into:
MessageBox.Show("hello world");
and then generate an exe which will…

jay_t55
- 11,362
- 28
- 103
- 174
8
votes
2 answers
How to change text on Messagebox buttons?
This is my code that I use:
MessageBox.Show("Do you want to save changes..?", "Save",
MessageBoxButtons.YesNoCancel);
I want to change the text on message box buttons is it possible?

Gowri
- 209
- 1
- 4
- 12
8
votes
6 answers
Make a Messagebox display a variable
I want a MessageBox to display an int variable, can anybody help?

user1350180
- 81
- 1
- 1
- 2
7
votes
2 answers
Custom WinForm with MessageBox Icon and Sound
I want to create a modal dialog that has more controls than what a standard .NET MessageBox offers you. I've created my own Windows Form that will be called with ShowDialog() to give the modal behavior. However, I'd like to utilize the graphics that…

Stealth Rabbi
- 10,156
- 22
- 100
- 176
7
votes
1 answer
Displaying Image in QmessageBox
How can I display an image in a message box. I tried
about.setIcon(":/pics/goku3.jpg");
but it gives me errors. I know I can use the built-in about box. Here is the full code for displaying this about box.
void…

Umer Farooq
- 7,356
- 7
- 42
- 67
7
votes
4 answers
How do I get MessageBox button caption?
I'm making a custom message box that lets you copy text, but I wanted it to look exactly like a standard message box, so I would like to set the buttons text to whatever the system language is, as the MessageBox class does.
Does anyone knows how to…

rodrigoq
- 509
- 1
- 6
- 16
7
votes
3 answers
message box with button "Yes to All" and "No to All"
Is this possible? The MessageBox.Show methods apparently force me to use one of the MessageBoxButton enums, and none of them has the Yes to all and no to all option. Is it possible to display a message box dialog having Yes To All and No to All?

Louis Rhys
- 34,517
- 56
- 153
- 221
7
votes
3 answers
API for MessageBox/Notification in Windows 10 style
I wonder is there an API for creating custom notifications in Windows 10 style like the one showing when updates are available for example?
I know that Citrix can send messages showing like that and it seems they use the sessionmsg.exe.…

B4DschK4Pp
- 165
- 1
- 10
7
votes
4 answers
change size of tkinter messagebox
In python, I am attempting the change the width of the tkinter messagebox window so that text can fit on one line.
import tkinter as tk
from tkinter import messagebox
root = tk.Tk()
messagebox.showinfo("info","this information goes beyond the width…

btobers
- 175
- 1
- 1
- 7