Constants.vbDefaultButton1 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示當訊息框出現時,最左邊的按鈕被選為預設按鈕。
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 列舉成員。