TaskScheduler 2.0 no 'ShowPropertyPage()', but 1.0 yes.

Feb 12, 2009 at 7:39 PM
Edited Feb 14, 2009 at 4:44 PM
This TaskScheduler 2.0 is a great helpful work.

But its a pity, the TaskScheduler 2.0 do not provide a possibility to show a PropertySheet Dialog of a choosen Task to a User.
In Taskscheduler 1.0 this was no problem. I also asked this topic to a managed Newsgroup, but still we do not have a solution.

Do anybody know a workaround?

ciao Frank Dzaebel
Coordinator
Apr 30, 2009 at 6:17 PM
Edited Feb 24, 2010 at 4:13 PM

In Release 1.3 I have added a method to the Task class which will show the property page (ShowPropertyPage()) under v1.0. In Release 1.4.2 and later there is the TaskEditDialog and the TaskSchedulerWizard which mimic the functionality in the native Task Scheduler management tool and allow editing and viewing of both 1.0 and 2.0 tasks.

Feb 24, 2010 at 2:34 PM

Is it possible on Vista to force a new task to be added in v1 mode?  This way we could still show the property page. 

I have some software that I wrote a while back in Delphi that uses some scheduler library and I notice that when I add a new task in XP or Vista it works as an old style task with an entry in C:\Windows\Tasks.  I can then show the task property page regardless of what OS it is on.

Andrew

Coordinator
Feb 24, 2010 at 4:07 PM

There are two answers to your question.

  1. Yes, it is possible to add a 1.0 task under Vista. This is accomplished by setting the TaskDefinition.Settings.Compatibility = TaskCompatibility.V1. You can also for the TaskService into 1.0 mode at construction by calling "new TaskService(null, null, null, null, true)".
  2. With the latest version of the library we have added TaskEditorDialog which mimics the functionality provided by the Vista native editor for a rich editing experience and also a wizard that allows simple tasks to be created. Either can edit 1.0 or 2.x tasks.
Feb 25, 2010 at 5:51 AM
dahall wrote:

In Release 1.3 I have added a method to the Task class which will show the property page (ShowPropertyPage()) under v1.0. In Release 1.4.2 and later there is the TaskEditDialog and the TaskSchedulerWizard which mimic the functionality in the native Task Scheduler management tool and allow editing and viewing of both 1.0 and 2.0 tasks.

Thank you for your work!

ciao Frank Dzaebel

Mar 4, 2010 at 8:04 PM

With a v1 task, when using ShowPropertyPage is there a way to control where the dialog appears on the screen? 

It is appearing towards the left side of the screen but it would be nice to be centered over my form.

Coordinator
Mar 5, 2010 at 12:52 AM

There is not a way with the native library to change the location of the property page dialog. The only option I can think of is to create a separate thread just before calling the ShowPropertyPage method that looks for the creation of a window with that title and then moves it. It would look funny though as it would appear in one place and then immediately move to another.

If you need total control, your best option is to use the TaskEditDialog or the TaskSchedulerWizard provided by this library.