提交表单后10秒钟内将显示消息框 [英] Message box should be display in 10 sec After Submiting the form

查看:100
本文介绍了提交表单后10秒钟内将显示消息框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

提交表单后,它将显示为数据已保存"消息.消息框将显示10秒钟.在它关闭之后.

帮助pl

问候
Praveen

Hello All,

After submitting the form It should display the message as " Data saved " The message box will appear for 10 sec. after it will closed.

Help pl

Regards
Praveen

推荐答案

您不能从框外关闭标准MessageBox-可以,但是它变得非常复杂.

最简单的方法是创建自己的MessageBox类,并在那里处理计时器.
You can''t close a standard MessageBox from outside the box - well, you can but it gets very complicated.

The easiest way to do this, is to create your own MessageBox class, and handle a timer there.


错误的主意!为什么是10秒?您想如何确保经过10秒后情况会发生变化?数据处理完成后,您需要显示一些内容.这种正确行为的实现很简单.

—SA
Wrong idea! Why 10 seconds? How you want to guarantee that a situation changes when 10 seconds pass? You need to show something when processing of the data is complete. Implementation of this — correct — behavior is straightforward.

—SA


这篇关于提交表单后10秒钟内将显示消息框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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