Wimark.Controls Class Library  

MessageBox.Show(String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton) Method

Displays a message box with specified text, caption, buttons, icon, and default button.

[Visual Basic]
Overloads Public Shared Function Show( _
   ByVal text As String, _
   ByVal caption As String, _
   ByVal buttons As MessageBoxButtons, _
   ByVal icon As MessageBoxIcon, _
   ByVal defaultButton As MessageBoxDefaultButton _
) As DialogResult 
[C#]
public static DialogResult Show( 
   string text, 
   string caption, 
   MessageBoxButtons buttons, 
   MessageBoxIcon icon, 
   MessageBoxDefaultButton defaultButton 
);
[C++]
public: static DialogResult Show( 
   String* text, 
   String* caption, 
   MessageBoxButtons buttons, 
   MessageBoxIcon icon, 
   MessageBoxDefaultButton defaultButton 
);

Parameters

text
The text to display in the message box.
caption
The text to display in the title bar of the message box.
buttons
One of the MessageBoxButtons that specifies which buttons to display in the message box.
icon
One of the MessageBoxIcon; values that specifies which icon to display in the message box.
defaultButton
One fo the MessageBoxDefaultButton values which specifies which is the default button for the message box.

Return Value

One of the DialogResult values.

Requirements

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

See Also

MessageBox Class | MessageBox Members | Wimark.Controls Namespace