Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created a program that can be run(load) manually by a user, or at time scheduled instance.

In the Form's Load,


FromTimeScheduled() - Procedure to initialize when the program runs on Scheduled Task.

Manuallyloaded() - Procedure to initialize when User runs the Program.

How can i call either of the 2 from the Form's Load when the program runs.
How will identify if the program was run via Scheduled Task or by the User Clicking the icon program at his DeskTop?
Posted

1 solution

You can do this .

Please configure your programme to use parameter . I am not sure but I think it is in project property menu

and then in form load check the parameter value.

Lets say if you are executing that program from scheduler do pass the parameter value as "FromSchedular" and if user run the program then it defiantly an empty value.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900