The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Constants::vbDefaultButton2 Field
.NET Framework (current version)
Indicates that the second button from the left is selected as the default button when the message box appears.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
Field Value
Type: Microsoft.VisualBasic::MsgBoxStyleWhen you call the MsgBox function, you can use the MsgBoxStyle enumeration in your code in place of the actual values. The Buttons argument takes the MsgBoxStyle enumeration members.
' Set the Retry button as the default button. MsgBox("Error occurred", vbDefaultButton2 Or vbAbortRetryIgnore)
.NET Framework
Available since 1.1
Available since 1.1
Show: