我怎样才能显示C#窗口服务系统托盘图标? [英] How can I display a system tray icon for C# window service.?

查看:349
本文介绍了我怎样才能显示C#窗口服务系统托盘图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何显示C#窗口服务的系统托盘图标?

How can I display a system tray icon for C# window service.?

推荐答案

在不同的窗口站比登录的用户,所以你不能有一个系统托盘图标他们。运行服务

Services run in a different window station than the logged in user, so you can't have a system tray icon for them.

<一个href=\"http://msdn.microsoft.com/en-us/library/d56de412.aspx\">http://msdn.microsoft.com/en-us/library/d56de412.aspx

下面是几个有关如何编写到系统托盘中的链接。你需要另一个应用程序的服务接口,因为服务不能直接在系统托盘中的图标。

Here are a couple of links about how to write to the system tray. You'll need another application to interface with the service, since the service can't directly have an icon in the system tray.

<一个href=\"http://stackoverflow.com/questions/995195/writing-a-windows-system-tray-application-with-net\">http://stackoverflow.com/questions/995195/writing-a-windows-system-tray-application-with-net

<一个href=\"http://msdotnetsupport.blogspot.com/2008/02/cnet-application-windows-system-tray.html\">http://msdotnetsupport.blogspot.com/2008/02/cnet-application-windows-system-tray.html

这篇关于我怎样才能显示C#窗口服务系统托盘图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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