--- title: "How to: Seek a Clock Synchronously" ms.date: "03/30/2017" dev_langs: - "csharp" - "vb" helpviewer_keywords: - "clocks [WPF], seeking synchronously" - "seeking clocks synchronously [WPF]" ms.assetid: e5b7529b-b7d0-40d2-9e1d-fa4b5e736e96 --- # How to: Seek a Clock Synchronously Use the method to seek a clock to a specific point synchronously. The following example demonstrates both the and methods of a . This example shows how to seek a ; for an example showing how to seek a storyboard, see [Seek a Storyboard Synchronously](how-to-seek-a-storyboard-synchronously.md) . ## Example [!code-csharp[ClockController_procedural_snip#ClockControllerSeekExample](~/samples/snippets/csharp/VS_Snippets_Wpf/ClockController_procedural_snip/CSharp/SeekAlignedToLastTickExample.cs#clockcontrollerseekexample)] [!code-vb[ClockController_procedural_snip#ClockControllerSeekExample](~/samples/snippets/visualbasic/VS_Snippets_Wpf/ClockController_procedural_snip/visualbasic/seekalignedtolasttickexample.vb#clockcontrollerseekexample)]