|
there is a question
Using the NTService control, starting from the service management will open a process of the software (you can see it in the task manager), but the form is not loaded.
This is very bad.When the user opens the software, another process is actually running.
I now have 2 ideas: (just implement any one)
1.Start the service from the service manager, can you not execute a process? (Possibility is not high, it depends on scheme 2)
2.After starting the service, start the form through the NTService_Start event, which is the same as opening the software normally. For example, the user starts the service management or uses the net start command to automatically open the form.
How do I do this? I cannot use load form1 and form1.show in the NTService_Start event.
This way, the service cannot be started
Anxious for expert help |
|