473,394 Members | 1,752 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,394 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 2095
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.