RTLAwareMessageBox.Show Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Displays a message box with the specified text, caption, and style. Makes the dialog right-to-left reading order if the resources for this DLL have been localized to a RTL language.
public:
static System::Windows::Forms::DialogResult Show(System::Windows::Forms::IWin32Window ^ owner, System::String ^ text, System::String ^ caption, System::Windows::Forms::MessageBoxButtons buttons, System::Windows::Forms::MessageBoxIcon icon, System::Windows::Forms::MessageBoxDefaultButton defaultButton, System::Windows::Forms::MessageBoxOptions options);
public static System.Windows.Forms.DialogResult Show (System.Windows.Forms.IWin32Window owner, string text, string caption, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon, System.Windows.Forms.MessageBoxDefaultButton defaultButton, System.Windows.Forms.MessageBoxOptions options);
static member Show : System.Windows.Forms.IWin32Window * string * string * System.Windows.Forms.MessageBoxButtons * System.Windows.Forms.MessageBoxIcon * System.Windows.Forms.MessageBoxDefaultButton * System.Windows.Forms.MessageBoxOptions -> System.Windows.Forms.DialogResult
Public Shared Function Show (owner As IWin32Window, text As String, caption As String, buttons As MessageBoxButtons, icon As MessageBoxIcon, defaultButton As MessageBoxDefaultButton, options As MessageBoxOptions) As DialogResult
Parameters
- owner
- IWin32Window
The IWin32Window object before which the message box is displayed.
- text
- String
A string value that specifies the text to display in the message box.
- caption
- String
A string value that specifies the text to display in the title bar of the message box.
- buttons
- MessageBoxButtons
A MessageBoxButtons object that specifies which buttons to display in the message box.
- icon
- MessageBoxIcon
A MessageBoxIcon object that specifies which icon to display in the message box.
- defaultButton
- MessageBoxDefaultButton
A MessageBoxDefaultButton object that specifies which display and association options are used for the message box.
- options
- MessageBoxOptions
A MessageBoxOptions object that specifies which display and association options are used by the message box.
Returns
A DialogResult object.