>I have a executable which is scheduled to run on a particular machine. Is there anyway I can programmatically disable the scheduled event to run by clicking a button on a form?
>
>Many thanks
Controlling the scheduler seems complicated; what you can do is enabling or disabling some condition, by clicking on a form. For example, when clicking on one button, create a file "runenabled.tmp" in a certain directory; with another button, delete the file.
The scheduled task will run in any case, but tell it to do nothing if it doesn't find the file "runenabled.tmp".
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)