MsgBox Style 常量(针对 Visual Basic 6.0 用户)

更新:2007 年 11 月

下表显示了 Visual Basic 6.0 MsgBox Style 常量及其 Visual Basic 2008 等效项。

说明:

为了向后兼容,仍可在 Visual Basic 2008 代码中使用 Visual Basic 6.0 MsgBox Style 常量。有关更多信息,请参见 MsgBoxStyle 枚举

Visual Basic 6.0

Visual Basic 2008 等效项

vbOKOnly

MsgBoxStyle.OKOnly

vbOKCancel

MsgBoxStyle.OKCancel

vbAbortRetryIgnore

MsgBoxStyle.AbortRetryIgnore

vbYesNoCancel

MsgBoxStyle.YesNoCancel

vbYesNo

MsgBoxStyle.YesNo

vbRetryCancel

MsgBoxStyle.RetryCancel

vbCritical

MsgBoxStyle.Critical

vbQuestion

MsgBoxStyle.Question

vbExclamation

MsgBoxStyle.Exclamation

vbInformation

MsgBoxStyle.Information

vbDefaultButton1

MsgBoxStyle.DefaultButton1

vbDefaultButton2

MsgBoxStyle.DefaultButton2

vbDefaultButton3

MsgBoxStyle.DefaultButton3

vbDefaultButton4

无等效项

vbApplicationModal

MsgBoxStyle.ApplicationModal

vbSystemModal

MsgBoxStyle.SystemModal

vbMsgBoxHelpButton

MsgBoxStyle.MsgBoxHelp

vbMsgBoxRight

MsgBoxStyle.MsgBoxRight

vbMsgBoxRtlReading

MsgBoxStyle.MsgBoxRtlReading

vbMsgBoxSetForeground

MsgBoxStyle.MsgBoxSetForeground

请参见

参考

MsgBoxStyle 枚举

其他资源

适用于 Visual Basic 6.0 用户的常数等效项

Visual Basic 中的常数和枚举