我该如何展示&在Windows应用程序中隐藏NotifyIcon? [英] How can I Show & Hide NotifyIcon in Windows Application?

查看:58
本文介绍了我该如何展示&在Windows应用程序中隐藏NotifyIcon?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个Windows应用程序,我想在最小化Windows窗体时显示NotifyIcon。当我最小化一个主Windows窗体,另一个窗体窗体显示和主窗体最小化,然后当我点击第二个窗体时,主窗口窗体显示,第二个是隐藏的,那时我也希望NotifyIcon也隐藏托盘......



请帮我解决这个问题....



谢谢.. ...

I have developed a windows application, in which I want to show a NotifyIcon when I Minimize a Windows form. When I minimize a main Windows form, an another windows form show and Main form is minimized, then when I click on second form, the main windows form is shown & second is hidden & at that time I also want that NotifyIcon also make hidden from tray...

Please help me to solve this....

Thank you.....

推荐答案

将它的visibillity设置为false / true:



Just set it's visibillity to false/true:

notifyIcon1.Visible = false;





或者你想问一些不同的东西?



Or did you want to ask something different?


这篇关于我该如何展示&在Windows应用程序中隐藏NotifyIcon?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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