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 接受列舉成員。

適用於

另請參閱