Type | Description | |||
Prompt as String | A String expression displayed as the message in the dialog box. The Prompt parameter may includes HTML format like explained bellow. | |||
Buttons as Variant | A long expression that is the sum of values specifying the number and type of buttons to display, the icon style to use, the identity of the default button, and the modality of the message box. If you omit Buttons, the default value is exOKOnly. The Buttons parameter is a combination of values in the OutStyle enumeration. | |||
Title as Variant | A String expression displayed in the title bar of the dialog box. The Title parameter may includes HTML format like explained bellow. The FitTitle property specifies whether the MessageBox or InputBox ensures that its title/caption fits the dialog's title | |||
Image as Variant | A string expression that indicates the path to a picture file being displayed, or a string expression that stores a picture in encoded base64 format. Use the eximages tool to save your picture as base64 encoded format. | |||
X as Variant |
The X parameter could be a numeric or a string expression like follows:
The FitToScreen property specifies whether the MessageBox ensures that it fits the screen ( current monitor ). | |||
Y as Variant |
The Y parameter could be a numeric or a string expression like follows:
The FitToScreen property specifies whether the InputBox ensures that it fits the screen ( current monitor ). |
Return | Description | |||
OutResult | An OutResult expression that indicates the identifier of button being clicked. |
The following samples aligns the message box as follow ( using /COM version ):
The following samples aligns the message box as follow ( using /NET version ):
The Prompt and Title arguments accepts the following HTML tags:
or <font ;31><sha 404040;5;0><fgcolor=FFFFFF>outline anti-aliasing</fgcolor></sha></font> gets:
The following sample displays a critical-error message in a dialog box with Yes and No buttons:
If MsgBox1.Out("<b>Do you want to continue?</b>", OutStyle.exCritical Or OutStyle.exYesNo, "Error") = OutResult.exYes Then ' Performs some action Else ' Performs some other action End If