剩余时间的弹出窗口/消息 [英] Popup window / message for remaining time

查看:116
本文介绍了剩余时间的弹出窗口/消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我的申请中有几个起因.应用程序启动时,计时器将启动30分钟.
我想使用弹出窗口,消息或其他方式(以当时用户所用的形式)显示剩余时间.

请告知操作方法.

谢谢
Furqan

Hi,
I have several froms in my application. When application starts, a timer starts for 30 minutes.
I want to show the remaining time using a popup window, message or whatever, on whichever form the user is at that time.

Please advise how to do it.

Thanks
Furqan

推荐答案

弹出窗口可能不是您真正想要的-通常,在进行主要操作之前,这些窗口需要用户的注意.
相反,我建议您考虑通过 StatusStrip控件使用状态行的一部分 [^ ],并在您的计时器Tick事件中每秒对其进行更新(例如说).
A popup window is probably not what you actually want - normally these require some attention from the user before the main operations can proceed.

I would suggest instead that you look at using part of a Status Line via a StatusStrip control[^], and updating it (say) each second from your timer Tick event.


您遇到什么问题?计时器(差异)还是将其显示在弹出窗口/表单上?

对于不同之处,请使用TimeSpan-示例 [
What part are you having issues with? The timer (difference) or displaying it on the popup / form?

For the difference, use TimeSpan - example[^].


这篇关于剩余时间的弹出窗口/消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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