MsgBox Result Constants for Visual Basic 6.0 Users
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

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 2005 equivalents.

NoteNote

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

Visual Basic 6.0 Visual Basic 2005 Equivalent

vbOK

MsgBoxResult.OK

vbCancel

MsgBoxResult.Cancel

vbAbort

MsgBoxResult.Abort

vbRetry

MsgBoxResult.Retry

vbIgnore

MsgBoxResult.Ignore

vbYes

MsgBoxResult.Yes

vbNo

MsgBoxResult.No

Show:
© 2016 Microsoft