MessageBoxResult ShowMessageBox(string message, string caption, MessageBoxButton button, MessageBoxImage icon);

This method displays a message box with the set of buttons you want shown and reports which button you clicked. See Table 75.

Table 75. Parameters for the ShowMessageBox(string message, string caption, MessageBoxButton button, MessageBoxImage icon) Method

Parameter

Description

message

The message to display in the content area of the message box

caption

The text to show in the title bar of the dialog box

button

Which buttons to show

icon

The type of icon to show in the message box

 

Related Topics

ShowMessageBox