PC Review


Reply
Thread Tools Rate Thread

C# / .NET services with UI

 
 
Arvind Ganesan
Guest
Posts: n/a
 
      14th Jun 2006
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.


 
Reply With Quote
 
 
 
 
Michael Nemtsev
Guest
Posts: n/a
 
      14th Jun 2006
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


 
Reply With Quote
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      14th Jun 2006
Arvind Ganesan <(E-Mail Removed)> wrote:
> 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.

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple services, separate service installers, starting only one in services panel, but all services run sdstraub@gmail.com Microsoft VB .NET 2 29th Aug 2006 09:43 AM
Starting/Stopping services via NET (how to find names for services?) DukeN Windows XP General 4 10th Aug 2006 10:13 PM
XP Professional dependent services disabled, cannot enable services mygraine1@yahoo.com Windows XP General 1 12th Jun 2004 07:50 PM
Crytographic Services doesn't exist in Services list pad Microsoft Windows 2000 Security 0 6th Nov 2003 08:46 AM
Web services work? Sweden deploys Java web services to expose real-time referendum results asj Microsoft Dot NET 1 12th Sep 2003 06:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:44 AM.