Questions tagged [messagebox]

A message box is a prefabricated modal dialog box that displays a text message to a user.

1861 questions
18
votes
8 answers

jquery: Flash messages

With jQuery, how can I display a flash message at the top of the page in an easy way? Is there something built-in, or a plugin, or is it easy enough to do it yourself? What I mean is like after a successful ajax post I would like to just say "hey,…
Svish
  • 152,914
  • 173
  • 462
  • 620
17
votes
4 answers

How to show a MessageBox with a checkbox?

I would like to create a MessageBox that has Yes/No buttons AND a checkbox. The application is a picture resizer and it will be re-sizing a number of pictures at once; in the process it will check if the new location filename exists with the option…
TK421
  • 801
  • 5
  • 16
  • 24
16
votes
1 answer

WPF MessageBox Default To Cancel

With this the default is OK. Can I make the default Cancel? MessageBoxResult result = MessageBox.Show (message, caption, MessageBoxButton.OKCancel);
paparazzo
  • 44,497
  • 23
  • 105
  • 176
16
votes
9 answers

Should I use a warning icon or a question mark icon in a Windows message box?

Many know of the MessageBoxIcon of type "question". If you are not particularly familiar with this icon, it is just a glorified question mark. I am curious as to whether or not this icon is acceptable in professional applications. For example,…
user725913
16
votes
1 answer

Python MessageBox with Icons using ctypes and windll

So, I'm looking for a way to create a simple Messagebox in Python using just the native libraries and came across several posts, but namely this one, leveraging ctypes to import the win32.dll and call its MessageboxA function. import ctypes # An…
MrBubbles
  • 405
  • 2
  • 7
  • 19
16
votes
5 answers

How to create the confirm box in mvc controller?

I need to create the confirm box in mvc controller?. Using this 'yes' or 'no' value I need to perform the action in my controller. How we do that? Sample code: public ActionResult ActionName(passing value) { // some code …
user279stack1
  • 163
  • 1
  • 2
  • 8
15
votes
5 answers

How do I change the MessageBox location?

I need to change the message box location. I don't want it to be in the center of the page. MessageBox.Show("Hello");
guy
  • 151
  • 1
  • 1
  • 3
14
votes
5 answers

How to get text and a variable in a messagebox

I just need to know how to have plain text and a variable in a messagebox. For example: I can do this: MsgBox(variable) And I can do this: MsgBox("Variable = ") But I can't do this: MsgBox("Variable = " + variable)
Mark Kramer
  • 3,134
  • 7
  • 34
  • 52
14
votes
4 answers

How to create a custom MessageBox?

I'm trying to make a custom message box with my controls. public static partial class Msg : Form { public static void show(string content, string description) { } } Actually I need to place some controls (a gridview) in this form and I…
Sen Jacob
  • 3,384
  • 3
  • 35
  • 61
14
votes
3 answers

Qt: How to display a Messagebox when you are within a function?

I'm developing using the Qt Nokia SDK. I'm having trouble displaying the buttons of a MessageBox, when trying to display a messagebox within a function. If i try to display it within the main window, there is no problem showing the buttons. The…
Ikky
  • 2,826
  • 14
  • 47
  • 68
14
votes
6 answers

Popping a MessageBox for the main app with Backgroundworker in WPF

In a WPF app, I am using a BackgroundWorker to periodically check for a condition on the server. While that works fine, I want to pop a MessageBox notifing the users if something fails during the check. Here's what I have: public static void…
Chi Chan
  • 11,890
  • 9
  • 34
  • 52
14
votes
4 answers

Windows [cmd.exe] command to display a messagebox with timeout?

Note: This is a question-with-answer in order to document a technique that others might find useful, and in order to perhaps become aware of others’ even better solutions. Do feel free to add critique or questions as comments. Also do feel free to…
Cheers and hth. - Alf
  • 142,714
  • 15
  • 209
  • 331
14
votes
1 answer

How to show a hyperlink in Inno Setup?

I'm making a validation in my Inno Setup installer to check whether or not a Microsoft update is installed on the machine, if not, I'm showing a simple message box telling the user that the update is required, this is the message code: MsgBox( …
Vic
  • 2,878
  • 4
  • 36
  • 55
13
votes
8 answers

how to set wpf MessageBox.Owner to desktop window because SplashScreen closes MessageBox

I am using the SplashScreen feature in WPF by setting a bitmap's Build Action to Splashscreen. Behind the splash screen, licensing information is being check, and if it fails I show a MessageBox. According to this Feedback, it is because the…
adriaanp
  • 2,064
  • 2
  • 22
  • 40
13
votes
4 answers

Automatically close messagebox in C#

I am currently developing an application in C# where I display a MessageBox. How can I automatically close the message box after a couple of seconds?
Boardy
  • 35,417
  • 104
  • 256
  • 447