[This is preliminary documentation and is subject to change.]
Displays a message box in front of the specified object and with the specified text, caption, and buttons.
Namespace: Tools.WindowsT.IndependentTAssembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)] public static DialogResult Show( Object owner, string text, string caption, MessageBoxButtons buttons ) |
| Visual Basic |
|---|
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)> _ Public Shared Function Show ( _ owner As Object, _ text As String, _ caption As String, _ buttons As MessageBoxButtons _ ) As DialogResult |
| Visual C++ |
|---|
[EditorBrowsableAttribute(EditorBrowsableState::Advanced)] public: static DialogResult Show( Object^ owner, String^ text, String^ caption, MessageBoxButtons buttons ) |
| F# |
|---|
[<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>] static member Show : owner:Object * text:string * caption:string * buttons:MessageBoxButtons -> DialogResult |
| JScript |
|---|
public static function Show( owner : Object, text : String, caption : String, buttons : MessageBoxButtons ) : DialogResult |
Parameters
- owner
- Type: System..::..Object
[Missing <param name="owner"/> documentation for "M:Tools.WindowsT.IndependentT.MessageBox.Show(System.Object,System.String,System.String,System.Windows.Forms.MessageBoxButtons)"]
- text
- Type: System..::..String
The text to display in the message box.
- caption
- Type: System..::..String
[Missing <param name="caption"/> documentation for "M:Tools.WindowsT.IndependentT.MessageBox.Show(System.Object,System.String,System.String,System.Windows.Forms.MessageBoxButtons)"]
- buttons
- Type: System.Windows.Forms..::..MessageBoxButtons
One of the MessageBoxButtons values that specifies which buttons to display in the message box.
Return Value
One of the DialogResult values.
Remarks
This function mimics the Show(String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, Boolean) function
Exceptions
| Exception | Condition |
|---|---|
| System.ComponentModel..::..InvalidEnumArgumentException | buttons is not member of MessageBoxButtons |
| System.Reflection..::..TargetInvocationException | There was an error working working with customized static properties such as DefaultImplementation or message box implementation failed. |
See Also
Version History
1.5.3
- (Beta) Type of parameter owner changed from IWin32Window to Object to support both - IWin32Window and Window.