MessageBox.show

Overview | Methods | Fields | This Package | All Packages

MessageBox.show

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

Syntax

public static int show( String text )

public static int show( String text, String caption )

public static int show( String text, String caption, int style )

Parameters

text

The text to display on the message box.

caption

The text to display in the title bar of the message box.

style

The style of the message box. This value represents one or more of the constants defined in this class, combined with a bitwise OR operator.

Return Value

Returns an integer that contains the value returned by the message box. Typically, this value identifies the button that the user clicked. These values are defined in the DialogResult class.