creating services with UI

  • Thread starter Thread starter Arvind Ganesan
  • Start date Start date
A

Arvind Ganesan

Hi,

I would like to write a service in C# and I have the need to display a UI
with status information, statistics, etc. If I use the Windows Service
project in C#, I noticed that the System.Windows namespace is not available
to me in the intellisense when I type "using System.".

What is the recommended procedure in C# / .NET for creating services that
display UI's and need to allow interaction with the desktop?

Thanks in advace,
Arvind.
 
Arvind,

As far as I know the whole point of a service is that it will always run,
even when there is no desktop (like when no-one is logged on). I've build a
few services myself and those services create a logfile in wich the status
of progress can be retrieved.
I suppose you could create a monitoring winforms app, this app will then be
communicating with the service. I'm not sure how to approach this but maybe
someone else on this group can help you with that, I would be interested in
this also.

HTH
Jurjen
Netherlands.
 
Hello Jurjen,

The common (read: correct) method is to create the service with no UI. Then
create a windows (UI) app that communicates with the service somehow (IPC,
TCP, etc).

-Boo
 
Back
Top