操作系统启动或重启后,状态栏中的“自动显示通知"图标 [英] Auto Show notify icon in status bar after OS start Or restart

查看:70
本文介绍了操作系统启动或重启后,状态栏中的“自动显示通知"图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在操作系统启动或重新启动后,如何在系统状态栏中自动显示通知图标??
请帮助我.....

How can i auto show the notify icon in system status bar after OS start Or restart???
Please help me.....

推荐答案

因为在启动或重新启动OS之前您的所有软件都不存在,并且因为"started"之间没有区别和重新启动",问题简化为一个问题:如何在OS启动时运行某些应用程序.您可以显示的状态将是一些初始状态,启动时始终保持不变.

如果是Windows(请参阅我的问题;您未指定),请在注册表项下注册要自动运行的应用程序:
As all of your software does not exist before OS is started or restarted, and because there is no difference between "started" and "restarted", the question is reduced to the one: how to run some application on OS startup. The status you can show will be some initial status, always the same on startup.

If this is Windows (please see my question; you did not specify it), register the application to be run automatically, at the Registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run



您可以使用类Microsoft.Win32.Registry使用注册表,请参见:
http://msdn.microsoft.com/zh-我们/library/microsoft.win32.registry%28v=vs.100%29.aspx [ http://en.wikipedia.org/wiki/Windows_service [ http://msdn.microsoft.com/en-us/library/d56de412%28v = vs.100%29.aspx [ ^ ].

您应该记住,您不能在Windows Service中运行任何UI.您仍然需要启动一些可以与服务通信的UI应用程序.您没有向我们解释您的目标,因此很难推荐某些确定的内容.

—SA



You can work with the Registry using the class Microsoft.Win32.Registry, please see:
http://msdn.microsoft.com/en-us/library/microsoft.win32.registry%28v=vs.100%29.aspx[^].

You can also develop a Windows Service with the startup mode "Automatic", so the application will be started by the service controller. Please see:
http://en.wikipedia.org/wiki/Windows_service[^],
http://msdn.microsoft.com/en-us/library/d56de412%28v=vs.100%29.aspx[^].

You should remember that you cannot run any UI in a Windows Service. You still need to start some UI application which can communicate with the service. You did not explain us your goal, so it''s hard to recommend anything certain.

—SA


这篇关于操作系统启动或重启后,状态栏中的“自动显示通知"图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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