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

適用於

另請參閱