MessageBox Methods
.NET Framework 4.5
The MessageBox type exposes the following members.
| Name | Description | |
|---|---|---|
|
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
Show(String) | Displays a message box that has a message and that returns a result. |
|
Show(String, String) | Displays a message box that has a message and title bar caption; and that returns a result. |
|
Show(Window, String) | Displays a message box in front of the specified window. The message box displays a message and returns a result. |
|
Show(String, String, MessageBoxButton) | Displays a message box that has a message, title bar caption, and button; and that returns a result. |
|
Show(Window, String, String) | Displays a message box in front of the specified window. The message box displays a message and title bar caption; and it returns a result. |
|
Show(String, String, MessageBoxButton, MessageBoxImage) | Displays a message box that has a message, title bar caption, button, and icon; and that returns a result. |
|
Show(Window, String, String, MessageBoxButton) | Displays a message box in front of the specified window. The message box displays a message, title bar caption, and button; and it also returns a result. |
|
Show(String, String, MessageBoxButton, MessageBoxImage, MessageBoxResult) | Displays a message box that has a message, title bar caption, button, and icon; and that accepts a default message box result and returns a result. |
|
Show(Window, String, String, MessageBoxButton, MessageBoxImage) | Displays a message box in front of the specified window. The message box displays a message, title bar caption, button, and icon; and it also returns a result. |
|
Show(String, String, MessageBoxButton, MessageBoxImage, MessageBoxResult, MessageBoxOptions) | Displays a message box that has a message, title bar caption, button, and icon; and that accepts a default message box result, complies with the specified options, and returns a result. |
|
Show(Window, String, String, MessageBoxButton, MessageBoxImage, MessageBoxResult) | Displays a message box in front of the specified window. The message box displays a message, title bar caption, button, and icon; and accepts a default message box result and returns a result. |
|
Show(Window, String, String, MessageBoxButton, MessageBoxImage, MessageBoxResult, MessageBoxOptions) | Displays a message box in front of the specified window. The message box displays a message, title bar caption, button, and icon; and accepts a default message box result, complies with the specified options, and returns a result. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |