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

本文详细介绍了MsgBox对话框的不同样式选项,包括按钮类型如确定、取消、是/否等,以及图标类型如重要消息、警告消息等。此外还列举了一些不常用的配置项,帮助开发者更好地理解和使用MsgBox。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

(一)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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值