473,241 Members | 1,534 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,241 software developers and data experts.

Tray Icon for multiple users

Hello--

I have made a C# executable that monitors the server it is placed on.
This works great so far.

Since I don't have physical access to this machine, I have my
executable launched by task manager and it runs in the background. Its
owner is SYSTEM, so that when I log out of terminal services, the
application is still running.

My question is how do I show this app to all users who terminal service
in? I can see the .exe in task manager, but I can't get the GUI to
appear. The app resides in the system tray until you click on it, and
then a form appears. Right now, I can't get the tray icon to appear
under different logged in users.

I have the app set so only one instance can be executed at one time.
Any ideas? I'd prefer to not turn this into a service (though basically
that's what it is).

How can I get a process (executable) to appear visually to all users
who log onto the server via terminal services?

Thanks -

Nov 17 '05 #1
3 2091
Steve,

Doing this is a REALLY bad idea. This should be a service, and it
should have no access to the desktop of whomever logs in.

Rather, you should have applications that connect to the service
(through remoting, basically, or some other interprocess communication)
which will send/receive data or make calls as necessary. Then, you can
force this app to run at startup when a user logs in.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Steve" <st**********@ticketmaster.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hello--

I have made a C# executable that monitors the server it is placed on.
This works great so far.

Since I don't have physical access to this machine, I have my
executable launched by task manager and it runs in the background. Its
owner is SYSTEM, so that when I log out of terminal services, the
application is still running.

My question is how do I show this app to all users who terminal service
in? I can see the .exe in task manager, but I can't get the GUI to
appear. The app resides in the system tray until you click on it, and
then a form appears. Right now, I can't get the tray icon to appear
under different logged in users.

I have the app set so only one instance can be executed at one time.
Any ideas? I'd prefer to not turn this into a service (though basically
that's what it is).

How can I get a process (executable) to appear visually to all users
who log onto the server via terminal services?

Thanks -

Nov 17 '05 #2
Hi Nicholas --

Thanks for answering. Why is this a really bad idea?

Basically I'd like a GUI into this "service". This app simply monitors
the event logs, and sends notifications out when something in the event
log is written.

So you're saying I should split this application in two... have a
"service" run that monitors the event log, and then split the GUI part
out to interface with the service?

I was thinking more along the lines of how the virus scanners work...
it runs as a service, but you also have a GUI for each and every user
that logs in.

Thanks for the response!
Steve
Nicholas Paldino [.NET/C# MVP] wrote:
Steve,

Doing this is a REALLY bad idea. This should be a service, and it
should have no access to the desktop of whomever logs in.

Rather, you should have applications that connect to the service
(through remoting, basically, or some other interprocess communication)
which will send/receive data or make calls as necessary. Then, you can
force this app to run at startup when a user logs in.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Steve" <st**********@ticketmaster.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hello--

I have made a C# executable that monitors the server it is placed on.
This works great so far.

Since I don't have physical access to this machine, I have my
executable launched by task manager and it runs in the background. Its
owner is SYSTEM, so that when I log out of terminal services, the
application is still running.

My question is how do I show this app to all users who terminal service
in? I can see the .exe in task manager, but I can't get the GUI to
appear. The app resides in the system tray until you click on it, and
then a form appears. Right now, I can't get the tray icon to appear
under different logged in users.

I have the app set so only one instance can be executed at one time.
Any ideas? I'd prefer to not turn this into a service (though basically
that's what it is).

How can I get a process (executable) to appear visually to all users
who log onto the server via terminal services?

Thanks -


Nov 17 '05 #3
Steve,

How the virus scanners work (a gui that connects to the service) is
exactly the way I have outlined it. Basically, there is interprocess
communication which the GUI uses to communicate with the service, which is
always running. You don't want a service to depend on a desktop because it
is not guaranteed that you always have an interactive user session to
interact with.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Steve" <st**********@ticketmaster.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Hi Nicholas --

Thanks for answering. Why is this a really bad idea?

Basically I'd like a GUI into this "service". This app simply monitors
the event logs, and sends notifications out when something in the event
log is written.

So you're saying I should split this application in two... have a
"service" run that monitors the event log, and then split the GUI part
out to interface with the service?

I was thinking more along the lines of how the virus scanners work...
it runs as a service, but you also have a GUI for each and every user
that logs in.

Thanks for the response!
Steve
Nicholas Paldino [.NET/C# MVP] wrote:
Steve,

Doing this is a REALLY bad idea. This should be a service, and it
should have no access to the desktop of whomever logs in.

Rather, you should have applications that connect to the service
(through remoting, basically, or some other interprocess communication)
which will send/receive data or make calls as necessary. Then, you can
force this app to run at startup when a user logs in.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Steve" <st**********@ticketmaster.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
> Hello--
>
> I have made a C# executable that monitors the server it is placed on.
> This works great so far.
>
> Since I don't have physical access to this machine, I have my
> executable launched by task manager and it runs in the background. Its
> owner is SYSTEM, so that when I log out of terminal services, the
> application is still running.
>
> My question is how do I show this app to all users who terminal service
> in? I can see the .exe in task manager, but I can't get the GUI to
> appear. The app resides in the system tray until you click on it, and
> then a form appears. Right now, I can't get the tray icon to appear
> under different logged in users.
>
> I have the app set so only one instance can be executed at one time.
> Any ideas? I'd prefer to not turn this into a service (though basically
> that's what it is).
>
> How can I get a process (executable) to appear visually to all users
> who log onto the server via terminal services?
>
> Thanks -
>

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Andrew Mueller | last post by:
Hello all, I have created a windows service and now I would like to have a configuration page in the system tray. Basically an icon I can click on which will just interact with an XML file. ...
10
by: Zeljko | last post by:
Hi, I have a form with a tray icon. However, when I minimize the form, it stays visible - not in the task bar (I have showintaskbar property set to false), but in a form of a rectangle sitting...
2
by: quilkin | last post by:
Hi I have an control app which starts up with a small info message then sits down as a tray icon while it does its work. When started manually (e.g.from a shortcut) this always works fine. However...
4
by: utkarsh | last post by:
Hi, I want to develop a Window Service in C# that should be capable of sisplaying the a icon in the window tray. Based on some logic in service, icon should be changed to some other...
8
by: george d lake | last post by:
Hi, I have an app that runs in the system tray. When I exit the app (from a button on a form) the app ends but the icon stays in the tray. Any ideas? here is the code I use to end the app ...
4
by: Tom | last post by:
Hello, System tray icon informs users that the apps is running in the background. However, there are instances that the app might crash and after that the app icon in the system tray is still...
8
by: Avi G | last post by:
Hi, i've created an application and i want it to be minimized to the sys tray, how i do it? if you can direct me step by step even with create a small application and put it in the sys tray ...
3
by: Patrick Dugan | last post by:
I am using VS2005 (vb) and I have a program that starts when Windows boots up. Occasionally the icon that should appear in the system tray does not show up. The program is still running in memory...
1
by: =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= | last post by:
Hi, how can i remove/disable the tray icon for the started Express Edition from the system tray. Te icon directs me to the express editons website after clicking on it. I dont want these tray...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.