[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, buttons, and icon.

Namespace: Tools.WindowsT.IndependentT
Assembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public static DialogResult Show(
	Object owner,
	string text,
	string caption,
	MessageBoxButtons buttons,
	MessageBoxIcon icon
)
Visual Basic
<EditorBrowsableAttribute(EditorBrowsableState.Never)> _
Public Shared Function Show ( _
	owner As Object, _
	text As String, _
	caption As String, _
	buttons As MessageBoxButtons, _
	icon As MessageBoxIcon _
) As DialogResult
Visual C++
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
public:
static DialogResult Show(
	Object^ owner, 
	String^ text, 
	String^ caption, 
	MessageBoxButtons buttons, 
	MessageBoxIcon icon
)
F#
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
static member Show : 
        owner:Object * 
        text:string * 
        caption:string * 
        buttons:MessageBoxButtons * 
        icon:MessageBoxIcon -> DialogResult 
JScript
public static function Show(
	owner : Object, 
	text : String, 
	caption : String, 
	buttons : MessageBoxButtons, 
	icon : MessageBoxIcon
) : 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,System.Windows.Forms.MessageBoxIcon)"]

text
Type: System..::..String

[Missing <param name="text"/> documentation for "M:Tools.WindowsT.IndependentT.MessageBox.Show(System.Object,System.String,System.String,System.Windows.Forms.MessageBoxButtons,System.Windows.Forms.MessageBoxIcon)"]

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,System.Windows.Forms.MessageBoxIcon)"]

buttons
Type: System.Windows.Forms..::..MessageBoxButtons

[Missing <param name="buttons"/> documentation for "M:Tools.WindowsT.IndependentT.MessageBox.Show(System.Object,System.String,System.String,System.Windows.Forms.MessageBoxButtons,System.Windows.Forms.MessageBoxIcon)"]

icon
Type: System.Windows.Forms..::..MessageBoxIcon

[Missing <param name="icon"/> documentation for "M:Tools.WindowsT.IndependentT.MessageBox.Show(System.Object,System.String,System.String,System.Windows.Forms.MessageBoxButtons,System.Windows.Forms.MessageBoxIcon)"]

Return Value

One of the DialogResult values.

Remarks

This overload is provided mainly for compatibility with MessageBox. You'd better use overload which's parameter is .

Exceptions

ExceptionCondition
System.ComponentModel..::..InvalidEnumArgumentExceptionbuttons is not member of MessageBoxButtons =or= icon is not member of MessageBoxIcon
System.Reflection..::..TargetInvocationExceptionThere was an error working working with customized static properties such as DefaultImplementation or message box implementation failed.

See Also

Collapse/expand Version History

1.5.3