This documentation is archived and is not being maintained.

MsgBox Result Constant Changes in Visual Basic .NET

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

Note   For backward compatibility, the Visual Basic 6.0 MsgBox Result constants may also be used in Visual Basic .NET.
Visual Basic 6.0Visual Basic .NET Equivalent
vbOKMsgBoxResult.OK
vbCancelMsgBoxResult.Cancel
vbAbortMsgBoxResult.Abort
vbRetryMsgBoxResult.Retry
vbIgnoreMsgBoxResult.Ignore
vbYesMsgBoxResult.Yes
vbNoMsgBoxResult.No

See Also

Constant Changes in Visual Basic .NET | MsgBoxResult Enumeration | Constants and Enumerations

Show: