PC Review


Reply
Thread Tools Rate Thread

Creating a windows service with interface

 
 
Diego F.
Guest
Posts: n/a
 
      7th May 2007
I need to make a windows service that shows the process in a window. How can
I add an interface to a windows service?

--

Regards,

Diego F.



 
Reply With Quote
 
 
 
 
Alberto Poblacion
Guest
Posts: n/a
 
      7th May 2007
"Diego F." <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I need to make a windows service that shows the process in a window. How
>can I add an interface to a windows service?


It is possible, in principle, to set the property "enable the service to
interact with the desktop", which would allow it to show a user interface.

However, this is not recommended. The "normal" way of providing a UI for
a Service is to write an ordinary Windows application to show the interface,
and then have this application interact with the service by means of some
method of interprocess comunication, such as .Net Remoting, for instance.

 
Reply With Quote
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      7th May 2007
Diego,

You don't. You should not have a service try and use user interface
elements. Rather, you should have the service expose an endpoint (through
remoting or WCF) and have a separate program access that endpoint in order
to display things to the user about the service.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"Diego F." <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I need to make a windows service that shows the process in a window. How
>can I add an interface to a windows service?
>
> --
>
> Regards,
>
> Diego F.
>
>
>



 
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
How to interface with a windows service? Benny Raymond Microsoft C# .NET 3 19th Nov 2005 05:58 AM
Writing a windows service with a socket interface. Peter Strĝiman Microsoft Dot NET Framework 1 17th Feb 2005 02:21 PM
How to Implement an Interface within a Windows Service Larry Page Microsoft C# .NET 1 15th May 2004 02:48 PM
Re: Creating Windows MDI interface similar to one in Studio .Net Steven Ireland Microsoft C# .NET 0 2nd Mar 2004 08:57 AM
Windows service user interface Gita George Microsoft VB .NET 1 12th Nov 2003 08:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:53 PM.