You only need the following:
TaskService ts = new TaskService(txtServerName.Text, logon[1], logon[0], logon[2], true); TaskSchedulerWizard tempEditorForm = new TaskSchedulerWizard(ts);if (tempEditorForm.ShowDialog() == DialogResult.OK) {// You can use tempEditorForm.TaskDefinition here to modify however you want
// You must register it to make it take effect
// You do not need to change the Compatibility property }