共用方式為


Constants.vbCritical 欄位

指出在呼叫 MsgBox 函式時所要顯示的按鈕。

命名空間: Microsoft.VisualBasic
組件: Microsoft.VisualBasic (在 microsoft.visualbasic.dll 中)

語法

'宣告
Public Const vbCritical As MsgBoxStyle
'用途
Dim value As MsgBoxStyle

value = Constants.vbCritical
public const MsgBoxStyle vbCritical
public:
literal MsgBoxStyle vbCritical
public static final MsgBoxStyle vbCritical
public const var vbCritical : MsgBoxStyle

備註

如需詳細資訊,請參閱 Visual Basic 的主題 MsgBoxStyle 列舉型別

當您呼叫 MsgBox 函數時,您可以在程式碼中使用 MsgBoxStyle 列舉型別來取代實際值。Buttons 引數採用 MsgBoxStyle 列舉型別成員。

平台

Windows 98、 Windows 2000 SP4、 Windows CE、 Windows Millennium Edition、 Windows Mobile for Pocket PC、 Windows Mobile for Smartphone、 Windows Server 2003、 Windows XP Media Center Edition、 Windows XP Professional x64 Edition、 Windows XP SP2、 Windows XP Starter Edition

.NET Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱系統需求一節的內容。

版本資訊

.NET Framework

支援版本:2.0、1.1、1.0

.NET Compact Framework

支援版本:2.0、1.0

請參閱

參考

Constants 類別
Constants 成員
Microsoft.VisualBasic 命名空間

其他資源

MsgBoxStyle 列舉型別
內建常數和列舉型別
MsgBoxResult 列舉型別
MsgBox 函式 (Visual Basic)
何時使用列舉型別
HOW TO:參考列舉型別成員