468,306 Members | 1,138 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,306 developers. It's quick & easy.

Creating a windows service with interface

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.

May 7 '07 #1
2 5578
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]
- mv*@spam.guard.caspershouse.com

"Diego F." <di********@msn.comwrote in message
news:e9**************@TK2MSFTNGP03.phx.gbl...
>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.

May 7 '07 #2
"Diego F." <di********@msn.comwrote in message
news:e9**************@TK2MSFTNGP03.phx.gbl...
>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.

May 7 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by ValK | last post: by
7 posts views Thread by Sunil Varma | last post: by
2 posts views Thread by mail.microsoft.com | last post: by
2 posts views Thread by Chris Mullins | last post: by
2 posts views Thread by =?Utf-8?B?U2Vhbk1hYw==?= | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.