Displays a message box.

Namespace: System.Extensions.Windows.Forms
Assembly: System.Extensions (in System.Extensions.dll) Version: 0.0.0.5 (0.0.0.5)

Syntax

C#
public static DialogResult Show(
	Control parent,
	string text,
	string caption
)
Visual Basic
Public Shared Function Show ( 
	parent As Control,
	text As String,
	caption As String
) As DialogResult
Visual C++
public:
static DialogResult Show(
	Control^ parent, 
	String^ text, 
	String^ caption
)
F#
static member Show : 
        parent : Control * 
        text : string * 
        caption : string -> DialogResult 

Parameters

parent
Type: System.Windows.Forms..::..Control
The control that will own the modal dialog box.
text
Type: System..::..String
The text to display in the message box.
caption
Type: System..::..String
The text to display in the title bar of the message box.

Return Value

Type: DialogResult
One of the DialogResult values.

See Also