Constants.vbDefaultButton1 字段

定义

指示在显示消息框时将最左侧的按钮作为默认按钮选中。

public: Microsoft::VisualBasic::MsgBoxStyle vbDefaultButton1 = 0;
public const Microsoft.VisualBasic.MsgBoxStyle vbDefaultButton1 = 0;
val mutable vbDefaultButton1 : Microsoft.VisualBasic.MsgBoxStyle
Public Const vbDefaultButton1 As MsgBoxStyle  = 0

字段值

Value = 0

示例

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

注解

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

适用于

另请参阅