对这个Whidbey Bug进行投票:如何使用WinForms 2.0创建任务栏图标(NotifyIcon)

Whatisplaying1

While Tray Icons (and applications that use ONLY TrayIcons as their UI) are a major part of our lives, there's limited support in WinForms (2.0) for them without resorting to P/Invoke and vestigial MainForms who only call this.Hide().NotifyIcon should be extended to support BalloonHelp. Hans Blomme's now-famous extended version of NotifyIcon is the canonical example. It still works under 2.0, but the 2.0 addition of the ContextMenuStrip makes it a little tricky. His free stuff could be integrated into the 2.0 NotifyIcon easily, adding a powerful (and missing) feature to 2.0 WinForms. Additionally, there should be a way for a Form to startup hidden to avoid the flash of the form before it calls this.Hide(), deferring to it's NotifyIcon.

尽管Tray Icons(以及仅使用TrayIcons作为其UI的应用程序)是我们生活中的主要部分,但WinForms(2.0)中对它们的支持有限,而无需诉诸仅称为this.Hide()的P / Invoke和残余MainForms。 NotifyIcon应该扩展为支持BalloonHelp。 汉斯·布洛姆(Hans Blomme)现在著名的NotifyIcon扩展版就是典型的例子。 它仍然可以在2.0下工作,但是ContextMenuStrip的2.0版本增加了它的技巧。 他的免费软件可以轻松集成到2.0 NotifyIcon中,为2.0 WinForms添加了强大的功能(并且缺少)。 此外,应该有一种隐藏窗体的启动方法,以避免在窗体调用this.Hide()之前刷新窗体,这要推迟到它的NotifyIcon。

Help us all out and vote to get this omission fixed in Whidbey.

帮助我们所有人投票,以纠正Whidbey中的这一遗漏

UPDATE: Some Reflectoring has confirmed that has in fact been fixed in the December CTP! All is as it should be. Thanks to Chris Sells and Scott Swigart.

更新:一些Reflectoring已确认实际上已在12月的CTP中修复! 一切都是应有的。 感谢Chris SellsScott Swigart

Now playing: Kanye West, Twista & Jamie Foxx - Slow Jamz

现在播放: Kanye West,Twista和Jamie Foxx - Slow Jamz

翻译自: https://www.hanselman.com/blog/vote-on-this-whidbey-bug-how-to-create-a-tray-icon-notifyicon-with-winforms-20

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值