Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / May 2007

Tip: Looking for answers? Try searching our database.

Creating a windows service with interface

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Diego F. - 07 May 2007 16:57 GMT
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.
Alberto Poblacion - 07 May 2007 17:16 GMT
>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.
Nicholas Paldino [.NET/C# MVP] - 07 May 2007 17:17 GMT
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.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

>I need to make a windows service that shows the process in a window. How
>can I add an interface to a windows service?
[quoted text clipped - 4 lines]
>
> Diego F.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.