C# / .NET 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.

p.s. sorry for the repost. I just tried posting the question a few minutes
ago, and noticed that the from field was wrong and my own question ended up
somehow as responses to my question.
 
Hello Arvind,

Write 2 apps - one service and second UI that will interact with each other
by any way.

Using UI in service in bad behavior and it's not awailable in the future
windows versions

AG> I would like to write a service in C# and I have the need to display
AG> a UI with status information, statistics, etc. If I use the
AG> Windows Service project in C#, I noticed that the System.Windows
AG> namespace is not available to me in the intellisense when I type
AG> "using System.".
AG>
AG> What is the recommended procedure in C# / .NET for creating services
AG> that display UI's and need to allow interaction with the desktop?
AG>
AG> Thanks in advace,
AG> Arvind.
AG> p.s. sorry for the repost. I just tried posting the question a few
AG> minutes ago, and noticed that the from field was wrong and my own
AG> question ended up somehow as responses to my question.
AG>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Arvind Ganesan said:
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?

Windows Services aren't designed to display UIs. It's possible, but not
generally a good idea. It would be better to run the service without a
UI, and expose something like a remoting API which would enable a
separate application to display the status.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top