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?
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.
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.
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.
Here is a code project article: Task Dialog WinForms
You can find all about it in MSDN.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With