vb.net 问题

[复制链接]
查看11 | 回复1 | 2009-1-13 08:38:59 | 显示全部楼层 |阅读模式
那位仁兄能帮小弟把下面的问题解决掉,能否说明每句话的意思。
Dim ret As MsgBoxResult

ret = MsgBox("是否退出?", MsgBoxStyle.YesNo Or MsgBoxStyle.Information, "询问操作")

If ret = MsgBoxResult.Yes Then

'单击了yes按钮()

Else

'单击了NO按()

End If
谢谢!谢谢
祝:新年快乐

天天开心
在程序中这
MsgBoxResult什么意思
MsgBoxStyle 什么意思
Information 什么意思
摆脱了
在下感激不禁

回复

使用道具 举报

千问 | 2009-1-13 08:38:59 | 显示全部楼层
Dim ret As MsgBoxResult '定义一个MsgBoxResult类型的变量ret ret = MsgBox("是否退出?", MsgBoxStyle.YesNo Or MsgBoxStyle.Information, "询问操作") 'MsgBox 函数返回的消息框上所按的按钮 If ret = MsgBoxResult.Yes Then '在消息框单击了yes按钮的话... Else '在消息框单击了no按钮的话... End Ifmsgbox函数 参考:http://tool.chinaue.com/vbs/html/vsfctMsgBox.htm...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行