Description

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

Syntax

Show( text, caption, buttons, icon, defaultButton, options )

Parameters

text

A string value specifying the text to display in the message box.

caption

An optional string value specifying the text to display in the title bar of the message box.

buttons

An optional MessageBoxButtons value that specifies which buttons to display in the message box.

icon

An optional MessageBoxIcon value that specifies which icon to display in the message box.

defaultButton

One of the MessageBoxDefaultButton values the specifies the default button for the message box.

options

A bitwise combination of the MessageBoxOptions values that specifies which display and association options will be used for the message box.

Return Value

One of the DialogResult values.

Remarks

By default, the message box displays an OK button.

See Also

Applies To: MessageBox


The CHM file was converted to HTML by chm2web software.