Visual Basic 2008 MsgBox函数内部常量(26种)——汇总

(一)MsgBoxStyle

(1)按钮类型

MsgBoxStyle.OkOnly(确定)
MsgBoxStyle.OkCancel (确定/取消)
MsgBoxStyle.YesNo (是/否)
MsgBoxStyle.YesNoCancel (是/否/取消)

MsgBoxStyle.AbortRetryIgnore (终止/重试/忽略)

MsgBoxStyle.RetryCancel(重试/取消)


(2)图标类型

MsgBoxStyle.Critical(重要消息)
MsgBoxStyle.Exclamation(警告消息)
MsgBoxStyle.Information(信息消息)

MsgBoxStyle.Question(警告查询)

(三)不常用不分类

MsgBoxStyle.ApplicationModal
MsgBoxStyle.DefaultButton1
MsgBoxStyle.DefaultButton2
MsgBoxStyle.DefaultButton3
MsgBoxStyle.MsgBoxHelp
MsgBoxStyle.MsgBoxRight
MsgBoxStyle.MsgBoxRtlReading
MsgBoxStyle.MsgBoxSetForeground
MsgBoxStyle.SystemModal
(二)MsgBoxResult
MsgBoxResult.Ok (确定)
MsgBoxResult.Cancel (取消)

MsgBoxResult.Yes (是)

MsgBoxResult.No (否)

MsgBoxResult.Abort
MsgBoxResult.Ignore

MsgBoxResult.Retry

你可能感兴趣的:(2008)