471,627 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

UI in a Windows Service

Alright, I have been looking around trying to figure out a way to solve
my problem and I'm a little confused. I have a Windows Service that
sits and listens to the serial port for information. Upon receiving
it, the Service formats the data accordingly and then requires input
from the user via three forms. I'm confused on how I can/should
display these forms. I read about Remoting, but am confused a little
on how that works if I'm developing the forms and they will all be
installed on the same PCs. Is remoting the way I should go? If so,
does anyone have a link to an example of how to do so, or a book
reference perhaps? If not, any other ideas would be greatly
appreciated.

Jan 24 '06 #1
2 1086
You cannot have a GUI in in Windows Service. It is not attached to the
desktop that the user is on so it will never get displayed. If you need to
get user input then you should not use a service.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Charles Cox
VC/VB/C# Developer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

"eric" <er**********@gmail.com> wrote in message
news:11********************@z14g2000cwz.googlegrou ps.com...
Alright, I have been looking around trying to figure out a way to solve
my problem and I'm a little confused. I have a Windows Service that
sits and listens to the serial port for information. Upon receiving
it, the Service formats the data accordingly and then requires input
from the user via three forms. I'm confused on how I can/should
display these forms. I read about Remoting, but am confused a little
on how that works if I'm developing the forms and they will all be
installed on the same PCs. Is remoting the way I should go? If so,
does anyone have a link to an example of how to do so, or a book
reference perhaps? If not, any other ideas would be greatly
appreciated.

Jan 24 '06 #2
> You cannot have a GUI in in Windows Service. It is not attached to the
desktop that the user is on so it will never get displayed. If you
need to get user input then you should not use a service.

"eric" <er**********@gmail.com> wrote in message
news:11********************@z14g2000cwz.googlegrou ps.com...
Alright, I have been looking around trying to figure out a way to
solve my problem and I'm a little confused. I have a Windows Service
that sits and listens to the serial port for information. Upon
receiving it, the Service formats the data accordingly and then
requires input from the user via three forms. I'm confused on how I
can/should display these forms. I read about Remoting, but am
confused a little on how that works if I'm developing the forms and
they will all be installed on the same PCs. Is remoting the way I
should go? If so, does anyone have a link to an example of how to do
so, or a book reference perhaps? If not, any other ideas would be
greatly appreciated.


You can, however, using .NET, send custom commands. Check out the OnCustomCommand
method.

It is also possible to communicate with a service through named pipes. But,
I believe that is outside the realm of the .NET framework.

Chris Martin
Jan 24 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Michael Riggio | last post: by
1 post views Thread by Artur Kowalski | last post: by
9 posts views Thread by SP | last post: by
1 post views Thread by Scott Davies | last post: by
reply views Thread by Scott Davies | last post: by
3 posts views Thread by Doug Bailey | last post: by
4 posts views Thread by tshad | last post: by
5 posts views Thread by dm3281 | last post: by
1 post views Thread by =?Utf-8?B?TWFuanJlZSBHYXJn?= | last post: by
1 post views Thread by XIAOLAOHU | last post: by

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.