在winform应用程序中每隔一小时弹出一条消息 [英] pop up messages for every one hour in winform application

查看:171
本文介绍了在winform应用程序中每隔一小时弹出一条消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每隔一小时我需要在Winforms中使用Windows服务弹出窗体。如何?

for every one hour i need a pop up form in Winforms with out using Windows services. how?

推荐答案

其中一个可能的变种是使用时间延迟等于1小时的计时器。

您必须订阅计时器勾选事件并执行WinWorm显示工作流程。
One of the possible variants is to use timer with time delay equals 1 hour.
the you must to subscribe to timer tick events and perform WinWorm display workflow.


您可以使用计时器控制并可以定义1小时的时间间隔。



创建弹出消息并在Timer Tick事件中显示。
You can use Timer Control and can define time interval for 1 hour.

Create popup message and show it on Timer Tick event.


这篇关于在winform应用程序中每隔一小时弹出一条消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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