473,324 Members | 2,313 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

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 5827
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ValK | last post by:
Hello All. I have a windows service, that monitors file directory. Now I'm trying to create custom install wizard for this service. I added projectinstaller class to my application, where I...
4
by: SH | last post by:
I wish to create a program (really a Windows Service) that sits and waits for a client PC to communicate with it, but I can't come up with a good method of doing so. I want to have a service...
4
by: WinDev | last post by:
We are trying to build a system where we have a Windows Service do some manipulation of data, and then sending the data to a Windows App. I had posted a question of how we should do this and was...
7
by: Sunil Varma | last post by:
Hello all, I wrote a Windows Service in VC.NET 2005 I want to debug the solution. I tried as mentioned in the following link. ...
2
by: Water Cooler v2 | last post by:
I want a process to be running always and it is supposed to do a lot of stuff like: 1. reading and writing to files 2. watching a file system folder 3. communicating with COM components 4....
2
by: mail.microsoft.com | last post by:
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...
2
by: Chris Mullins | last post by:
For some reason the question, "Can I make an EXE that is both a Windows Service and a Console Application?" has come up quite a bit for me over the last few weeks. I've been doing this for...
1
by: eblackmo | last post by:
I have a test network consisting of four servers running windows 2003 server R2 SP2. I have set up a domain which functioned correctly for about a day and a half until the other servers decided they...
2
by: =?Utf-8?B?U2Vhbk1hYw==?= | last post by:
I am familiar with how to use winsock in vb6 to create a network app. I'm trying to find a way to take the current vb6 app and create a windows service using system.net.sockets. How do you create...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.