Calling a Form from a service
I am just starting VB.Net in order to make a Printing Service for an application.
I have a service, and I was wondering how can I have it start a Windows Form UI when it is started?
So, for example the Form class name is Form1, what code in onStart() will show the form when the service starts?
Re: Calling a Form from a service
the form load event...? :confused:
Re: Calling a Form from a service
Services are not meant to have a GUI (Graphic User Interface). A service will run under different user credentials and also runs even if no user is logged on.
You should consider making a regular exe that runs in the background instead.
Re: Calling a Form from a service
Interesting...
Another question:
Since Services can be made to start Manually, can I have a WindowsForm in which when the user selects some values, it passes those values to the service and start it?
Re: Calling a Form from a service
Yes you could do that. You could also use remoting to communicate from a windows application to a windows service at runtime. Of course that solution is a bit of work.