3秒后如何使消息框消失? [英] How to make a messagebox disappear after 3 seconds?

查看:92
本文介绍了3秒后如何使消息框消失?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序中有一个确认屏幕,告诉用户他的项目已成功保存.他可以按OK,然后消息框就会消失,但如果不这样做,如果没有响应,我如何让消息框在3秒钟后消失?

I have a confirmation screen in my app where I tell the user that his item is saved succesfully. He can press OK and the messagebox will go, but if he does not, how can I make the messagebox disappear after 3 seconds if there is no response?

推荐答案

根据MSDN,没有用户操作就无法关闭消息框(此操作未提供方法) http://msdn.microsoft. com/en-us/library/system.windows.messagebox_methods(v = vs.95).aspx

According to MSDN, there is no way to close a messagebox without user action (no method provided for this action) http://msdn.microsoft.com/en-us/library/system.windows.messagebox_methods(v=vs.95).aspx

这篇关于3秒后如何使消息框消失?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆