发送到托盘上关闭发送到、托盘

2023-09-03 06:59:03 作者:菊部地区有血

我如何发送最小化到托盘上点击关闭按钮时窗口? 还怎么显示托盘图标时,应用程序启动?

How can I send the window minimized to tray when on click close button? Also how to show icon in tray when application start?

推荐答案

没有什么自带嵌入式与WPF。从实现方式,你可以找到在网上,有一个简单的,使用的WinForms:

There is nothing that comes embedded with WPF. From implementations that you can find on the net, there is an "easy" one, that uses WinForms:

http://msdn.microsoft.com/en-us/library/aa972170.aspx

不过,我喜欢这一个多(可用于气球提示过)

But I like this one more (can be used for balloon tips too)

http://www.$c$cproject.com/KB/WPF/wpf_notifyicon.aspx

 
精彩推荐
图片推荐