July 2002
Beginner
720 pages
14h 35m
English
To display a predefined dialog box, we use the static MessageBox class. This class has only one method – the Show method. It is used to display a message box and its properties are used to determine the title, message, buttons, and icons shown in it. Table 8.3 shows different overloaded versions of the Show method and explains when to use each of them.
| Parameters | Used to |
|---|---|
| String | Display a message box with the specified text. |
| String, String | Display a message box with the specified text and caption. |
| String, String, MessageBoxButtons | Display a message box with the specified text, caption, and buttons |
| String, String, MessageBoxButtons, MessageBoxIcon | Display a message ... |
Read now
Unlock full access