C#中的小任务提醒 [英] Small task reminder in C#
本文介绍了C#中的小任务提醒的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在屏幕右下角每隔5分钟显示一个小的windowsForm。当你有消息时,看起来雅虎的窗口会出现
解决方案
隐藏你的主要表格(或者没有一个)。
使用Timer,设置为30秒左右的间隔,以及Timer.Tick处理程序中的计数。五分钟过期后,创建一个小表单,设置它的位置并显示它。如果需要,您可以使用具有不同计数的相同计时器再次关闭它。
是 Google [ ^ ]为你阻止?
一个灵魂写了这个例子代码项目差不多10年前了。看看:
TaskbarNotifier,C#中一个可换肤的MSN Messenger弹出窗口,现在也是VB.NET中的一个弹出窗口[ ^ ]
我是C#的新生,所以有很多事我不知道。
谢谢大家的答案,我明白了。 :)
How to make a small windowsForm show up every 5 minutes in right bottom of the screen. It look like yahoo windows show up when you have a message
解决方案
Hide your main form (or don't have one).
Use a Timer, set to 30 seconds or so intervale, and a count in the Timer.Tick handler. When the five minutes has expired, create a small form, set it's location and Show it. You can use the same timer with a different count to close it again if needed.
Is Google [^]blocked for you?
One kind soul wrote this example on Code Project almost 10 year back. Have a look:
TaskbarNotifier, a skinnable MSN Messenger-like popup in C# and now in VB.NET too[^]
I'm a new student in C#, so there are many thing i do not know.
Thank you all for your answers, I got it. :)
这篇关于C#中的小任务提醒的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文