Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 551
Ash Avatar asked Apr 03 '09 18:04

Ash


People also ask

How do I display 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.

What is message box class explain message box () in detail?

A message box is a prefabricated modal dialog box that displays a text message to a user. You show a message box by calling the static Show method of the MessageBox class. The text message that is displayed is the string argument that you pass to Show.

How do you use message box?

Access to the message box is provided by the MessageBox class. A message box is displayed modally. And the code that displays the message box is paused until the user closes the message box either with the close button or a response button.


1 Answers

using System.Windows.Forms; ... MessageBox.Show("Hello World!"); 
like image 186
John Gietzen Avatar answered Sep 19 '22 13:09

John Gietzen