|
-
May 10th, 2006, 03:21 PM
#1
Thread Starter
New Member
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?
-
May 10th, 2006, 03:26 PM
#2
Hyperactive Member
Re: Calling a Form from a service
the form load event...?
-
May 11th, 2006, 01:07 AM
#3
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.
-
May 11th, 2006, 04:13 PM
#4
Thread Starter
New Member
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?
-
May 12th, 2006, 02:55 AM
#5
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|