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

適用於

另請參閱