Windows Service with Forms

  • Thread starter Thread starter IsRaEl
  • Start date Start date
I

IsRaEl

Helly guys...

Anyone know's how to call a Form from inside a Windows Service
Project??

Thanks in advance...
 
I think we went over this with you already, you don't. Interacting with
a form from a service is a very, very bad idea, as you won't always have an
interactive login in order to display a form with. While you can allow the
service to interact with the desktop, I believe it was pointed out in the
last thread that Vista does not allow this option.

If you want to receive notifications from the service and display them
in a UI, then create a separate exe and have it contact the service through
remoting.
 
I think we went over this with you already, you don't. Interacting with
a form from a service is a very, very bad idea, as you won't always have an
interactive login in order to display a form with. While you can allow the
service to interact with the desktop, I believe it was pointed out in the
last thread that Vista does not allow this option.

If you want to receive notifications from the service and display them
in a UI, then create a separate exe and have it contact the service through
remoting.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


Helly guys...
Anyone know's how to call a Form from inside a Windows Service
Project??
Thanks in advance...

so remoting..with 2 separeted projetcs it's the best solution??

i can use the winform to call a method inside the Service, with the
service permissions??
 
Yes, you can. You would set the service up as a remoting server, and
then have the windows forms app be a client which makes calls on the methods
you expose on the server.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

IsRaEl said:
I think we went over this with you already, you don't. Interacting
with
a form from a service is a very, very bad idea, as you won't always have
an
interactive login in order to display a form with. While you can allow
the
service to interact with the desktop, I believe it was pointed out in the
last thread that Vista does not allow this option.

If you want to receive notifications from the service and display
them
in a UI, then create a separate exe and have it contact the service
through
remoting.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


Helly guys...
Anyone know's how to call a Form from inside a Windows Service
Project??
Thanks in advance...

so remoting..with 2 separeted projetcs it's the best solution??

i can use the winform to call a method inside the Service, with the
service permissions??
 
Yes, you can. You would set the service up as a remoting server, and
then have the windows forms app be a client which makes calls on the methods
you expose on the server.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


I think we went over this with you already, you don't. Interacting
with
a form from a service is a very, very bad idea, as you won't always have
an
interactive login in order to display a form with. While you can allow
the
service to interact with the desktop, I believe it was pointed out in the
last thread that Vista does not allow this option.
If you want to receive notifications from the service and display
them
in a UI, then create a separate exe and have it contact the service
through
remoting.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Helly guys...
Anyone know's how to call a Form from inside a Windows Service
Project??
Thanks in advance...
so remoting..with 2 separeted projetcs it's the best solution??
i can use the winform to call a method inside the Service, with the
service permissions??

anyone have some sample App about remoting working??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top