| |

VerySource

 Forgot password?
 Register
Search
View: 616|Reply: 1

Advice on NTService

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-20 17:00:02
| Show all posts |Read mode
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
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-4-28 12:30:01
| Show all posts
Finished the post and found it myself .... Interactive
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list