This project has moved and is read-only. For the latest updates, please go here.

TriggerEditDialog - how to add edited TimeTrigger to a Task Definition?

Dec 22, 2015 at 1:12 PM
After editing a TimeTrigger (MyTrigger) in TriggerEditDialog, trying to add the edited trigger to a task definition fails to reflect the properties set by the TriggerEditDialog.
Dim MyTrigger As New TimeTrigger
Dim ls_Trigger_Window_Title As String = "Please Specify Trigger"
Dim triggerDlg As New TriggerEditDialog(MyTrigger, False) With { _
                .Text = ls_Trigger_Window_Title _
If triggerDlg.ShowDialog() = vbOK Then
End If
A trigger indeed gets added to the Task Definition (td) but it does not reflect the properties set in the Trigger Dialog.

Is there a special step we need to take in order to not lose the edited properties of a TimedTrigger once the TriggerEditDialog is closed?
Dec 22, 2015 at 2:12 PM
I think I see the solution. AFTER the dialog is closed, we still have access to the .Trigger property of the dialog, That gives us the updated trigger properties.
Marked as answer by ixm7 on 12/22/2015 at 6:23 AM