NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

MessageBox.Show (IWin32Window, String, String, Int32)

Displays a message box with the specified text, caption, and style.

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

Parameters

owner
The Windows owner of the message box.
text
The text to display in the message box.
caption
The text to display in the title bar of the message box.
style
The buttons and symbols to display in the message box. This value represents one or more of the constants defined in this class, combined with the bitwise OR operator. For example, to display an OK button and a hand symbol, pass MessageBox.OK|MessageBox.IconHand.

Return Value

One of the DialogResult values.

See Also

MessageBox Class | MessageBox Members | System.WinForms Namespace | MessageBox.Show Overload List