Type | Description | |||
Date | A DATE expression that specifies the date and time where the timer should be displayed. |
The following snippet of code shows how to get notified once the user moves at runtime the timer. The sample holds the timer from the cursor once the LayoutStartChanging( exScheduleMoveMarkTime) event occurs, and when the LayoutEndChanging( exScheduleMoveMarkTime) event is fired, the previously saved timer, is displayed with the new time.
Dim mtChange As MarkTime
Private Sub Schedule1_LayoutStartChanging(ByVal Operation As EXSCHEDULELibCtl.LayoutChangingEnum) If (Operation = exScheduleMoveMarkTime) Then Set mtChange = Schedule1.MarkTimeFromPoint(-1, -1) End If End Sub Private Sub Schedule1_LayoutEndChanging(ByVal Operation As EXSCHEDULELibCtl.LayoutChangingEnum) If (Operation = exScheduleMoveMarkTime) Then If Not (mtChange Is Nothing) Then Debug.Print "Timer has been moved to " & mtChange.Time End If End If End Sub