Collapse the table of content
Expand the table of content
Expand Minimize

Constants.vbCancel Field


Indicates that the Cancel button was clicked in a message box. Returned by the MsgBox function.

Namespace:   Microsoft.VisualBasic
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public const MsgBoxResult vbCancel

When you call the MsgBox function, you can use the MsgBoxResult enumeration in your code in place of the actual values.

The MsgBox function returns a MsgBoxResult enumeration value.

.NET Framework
Available since 1.1
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft