Udostępnij za pośrednictwem


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.

Note

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

See Also

Reference

MsgBoxResult Enumeration

Other Resources

Constant Equivalents for Visual Basic 6.0 Users

Constants and Enumerations in Visual Basic