Constants.vbDefaultButton2 字段

定义

指示显示消息框时,左侧的第二个按钮被选为默认按钮。

public: Microsoft::VisualBasic::MsgBoxStyle vbDefaultButton2 = 256;
public const Microsoft.VisualBasic.MsgBoxStyle vbDefaultButton2 = 256;
val mutable vbDefaultButton2 : Microsoft.VisualBasic.MsgBoxStyle
Public Const vbDefaultButton2 As MsgBoxStyle  = 256

字段值

Value = 256

示例

' Set the Retry button as the default button.
MsgBox("Error occurred", vbDefaultButton2 Or vbAbortRetryIgnore)

注解

调用 MsgBox 函数时,可以在 MsgBoxStyle 代码中使用枚举代替实际值。 该 Buttons 参数采用 MsgBoxStyle 枚举成员。

适用于

另请参阅