Skip to content

VbMsgBoxStyle

Buttons, icons, default-button, modality, and other behaviour flags for the MsgBox dialog. Combine values from different groups with Or (or addition) to specify the desired combination --- for example, vbYesNo Or vbCritical Or vbDefaultButton2.

Buttons

ConstantValueDescription
vbOKOnly0OK button only (default).
vbOKCancel1OK and Cancel buttons.
vbAbortRetryIgnore2Abort, Retry, and Ignore buttons.
vbYesNoCancel3Yes, No, and Cancel buttons.
vbYesNo4Yes and No buttons.
vbRetryCancel5Retry and Cancel buttons.
vbCancelTryAgainContinue6Cancel, Try Again, and Continue buttons.

Icon

ConstantValueDescription
vbCritical16Critical message icon.
vbQuestion32Warning query icon.
vbExclamation48Warning message icon.
vbInformation64Information message icon.

Default button

ConstantValueDescription
vbDefaultButton10First button is default (default).
vbDefaultButton2256Second button is default.
vbDefaultButton3512Third button is default.
vbDefaultButton4768Fourth button is default.

Modality

ConstantValueDescription
vbApplicationModal0Application-modal message box (default).
vbSystemModal4096System-modal message box.

Options

ConstantValueDescription
vbMsgBoxHelpButton16384Adds a Help button to the message box.
vbMsgBoxSetForeground65536Specifies the message box window as the foreground window.
vbMsgBoxRight524288Text is right-aligned.
vbMsgBoxRtlReading1048576Text is displayed right-to-left, for Hebrew and Arabic systems.

See Also

twinBASIC and LOGO copyright of "WaynePhillipsEA" author