装入系统托盘 [英] load in system tray

查看:101
本文介绍了装入系统托盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个叫做form1的表格.我想要每当程序执行窗体不可见.
然后按一些组合键,如(ctrl + j)即可显示表格.
请在vb.net中进行指导

我们必须将其装入系统托盘还是有其他方法?
请通过代码进行plz指南.


谢谢

解决方案

您可以这样操作:

me.ShowInTaskbar = false



但是,如果您的应用正在运行,则确实应该有一个指示,以便用户不会坐在那里想知道它是否在运行.

编辑====================

回应您的我不满意"声明...您可以自由使用google,但是您会发现这是从任务栏隐藏应用程序的方式.您还可以随意忽略已有30年业务经验的人的建议,然后继续隐藏应用程序的按钮,并且不要在系统托盘中放置图标,但是在此情况下,要点,必须就您的意图提出一个问题.


我对无形形式的想法.代码只会在按键上执行,但是您如何知道是否专注于窗体来执行其事件呢?

我个人会选择系统任务栏选项,但我会给您一个google链接,因为您不但可以从中学习更多信息!

解决方案

You can do it this way:

me.ShowInTaskbar = false



HOWEVER, if your app is running, there really should be an indication of it so the user isn''t sitting there wondering if it ran.

EDIT ======================

In response to your "I''m not satisfied" statement... You''re free to use google, but you''ll find that that''s the way you hide the application from the taskbar. You''re also free to ignore the advice from someone who''s been in the business for 30 years, and go ahead and hide your app''s button as well as not put an icon in the system tray, but at this point, a question must be raised as to your intent.


my thoughts about the invisible form. Code will only execute on the keypress but how would you know if you have focus on the form to execute its event?

I would personally go with system tray option, but I''ll give you a google link as your more than likely to learn more from it!

Google Search: vb.net system tray


So, yes, you can do it without loading it in the system tray. But, the only reason that I can think of doing this would be for a key logger...as in you want a program running that no one knows about that is logging every keystroke...or taking snapshots of the screen periodically.

If that''s the case, then I''m definitely not going to tell you how to do it.

Provide a good reason as to why you want to do this and maybe I''ll help you out.


这篇关于装入系统托盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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