用c#代码显示按摩1分钟? [英] display massage for 1 minute in c# code ?

查看:120
本文介绍了用c#代码显示按摩1分钟?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好所有

我需要显示按摩约一分钟然后关闭自动

这个按摩出现后点击一些按钮作为警告按摩?

请帮助:)

Hello all
please i need to display massage for about one minute and then closed auto
this massage appear after click some button as warning massage ?
please help :)

推荐答案

具体如何取决于您所处的环境:WinForms解决方案与基于Web的解决方案有很大不同一个。



但我为WinForms做的方法是创建一个表单来显示消息,为它添加一个计时器,然后启动计时器Form.Shown事件。

在Tick处理程序中,停止计时器,并在表单上调用Close。
Exactly how you do that depends on the environment you are working in: a WinForms solution would be very different from a web based one.

But the way I'd do it for WinForms would be to create a form to display the message, add a timer to it, and start the timer in the Form.Shown event.
In the Tick handler, stop the timer, and call Close on the form.


这篇关于用c#代码显示按摩1分钟?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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