MsgBox Result Constants for Visual Basic 6.0 Users

The following table shows the Visual Basic 6.0 MsgBox Result constants and their Visual Basic 2008 equivalents.

NoteNote:

For backward compatibility, you can still use Visual Basic 6.0 MsgBox Result constants in Visual Basic 2008 code. For more information, see MsgBoxResult Enumeration.

Visual Basic 6.0

Visual Basic 2008 Equivalent

vbOK

MsgBoxResult.OK

vbCancel

MsgBoxResult.Cancel

vbAbort

MsgBoxResult.Abort

vbRetry

MsgBoxResult.Retry

vbIgnore

MsgBoxResult.Ignore

vbYes

MsgBoxResult.Yes

vbNo

MsgBoxResult.No

Community Additions

ADD
Show: