Share via


IExplorerNodeContext.ShowMessageBox Method

Definition

Displays a message box.

public:
 System::Windows::Forms::DialogResult ShowMessageBox(System::String ^ message, System::Windows::Forms::MessageBoxButtons buttons, System::Windows::Forms::MessageBoxIcon icon);
public System.Windows.Forms.DialogResult ShowMessageBox (string message, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon);
abstract member ShowMessageBox : string * System.Windows.Forms.MessageBoxButtons * System.Windows.Forms.MessageBoxIcon -> System.Windows.Forms.DialogResult
Public Function ShowMessageBox (message As String, buttons As MessageBoxButtons, icon As MessageBoxIcon) As DialogResult

Parameters

message
String

The message text.

buttons
MessageBoxButtons

The buttons to display in the message box.

icon
MessageBoxIcon

The icon to display in the message box.

Returns

A value that specifies which button the user clicked in the message box.

Applies to