This documentation is archived and is not being maintained.

MessageBox.Show Method (String)

.NET Framework 1.1

Displays a message box with specified text.

[Visual Basic]
Overloads Public Shared Function Show( _
   ByVal text As String _
) As DialogResult
[C#]
public static DialogResult Show(
 string text
);
[C++]
public: static DialogResult Show(
 String* text
);
[JScript]
public static function Show(
   text : String
) : DialogResult;

Parameters

text
The text to display in the message box.

Return Value

One of the DialogResult values.

Remarks

By default, the message box displays an OK button. The message box does not contain a caption in the title.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

.NET Framework Security: 

See Also

MessageBox Class | MessageBox Members | System.Windows.Forms Namespace | MessageBox.Show Overload List

Show: