Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WinForms message box with textual buttons

Windows 7(?) introduced a new message box feature (I'm not sure what it is called so I've uploaded a picture). How can I create such a box in C# with WinForms?

Windows new message box

like image 656
AK. Avatar asked Dec 03 '10 06:12

AK.


People also ask

What is a message box buttons?

Displays a message in a dialog box, waits for the user to click a button, and returns an Integer indicating which button the user clicked.

What is the 3rd parameter in MessageBox show ()?

The first parameter msg is the string displayed in the dialog box as the message. The second and third parameters are optional and respectively designate the type of buttons and the title displayed in the dialog box. MsgBox Function returns a value indicating which button the user has chosen.

What method do you call to display a message box?

To display a message box, call the static method MessageBox. Show. The title, message, buttons, and icons displayed in the message box are determined by parameters that you pass to this method.


2 Answers

Here is a code project article: Task Dialog WinForms

like image 160
Eric Dahlvang Avatar answered Oct 22 '22 10:10

Eric Dahlvang


You can find all about it in MSDN.

like image 20
Örjan Jämte Avatar answered Oct 22 '22 10:10

Örjan Jämte