Category / Section
How to Freeze / Unfreeze Time in Digital Frame of Clock Control?
2 mins read
The Clock Control has two frames.
- Analog Frame
- Digital Frame
This control supports freezing/unfreezing time updates, and it can be done using its property named StopTimer in both Analog and Digital Frames.
The following code sample demonstrates the same.
C#
//To freeze the time in Clock this.clock1.StopTimer = true; //To unfreeze time in Clock this.clock1.StopTimer = false;
VB
'To freeze the time in Clock Me.clock1.StopTimer = True 'To unfreeze time in Clock Me.clock1.StopTimer = False
Screenshot
Figure 1: Freeze Time
Figure 2: Unfreeze Time
Sample Links:
C#: Clock_Freeze/Unfreeze_Time
VB: Clock_Freeze/Unfreeze_TimeVB