Loading...
Loading...
Guide for implementing the Syncfusion WinForms Clock control in Windows Forms applications. Use this skill when the user needs to add a clock display, switch between analog and digital modes, customize clock appearance, apply custom renderers, configure frames or shapes for the digital clock, or freeze the clock at a fixed time. Covers ClockType, ClockFrame, ClockShape, ShowCustomTimeClock, ClockRenderer, and DigitalRenderer.
npx skill4agent add syncfusion/winforms-ui-components-skills syncfusion-winforms-clockClockSyncfusion.Windows.Forms.Tools.ClockClockTypeClockFrameClockShapeShowCustomTimeClockCustomTimeStopTimerClockRenderer.DrawInteriorDigitalClockRenderer.DrawDigitalClockFrame| Property | Type | Description |
|---|---|---|
| | |
| | Enable custom (non-system) time display |
| | The custom time to display when |
| | Freeze the clock at its current time |
| | Transparent background (analog) |
| | Custom renderer for analog clock hands |
| | Custom renderer for digital clock frame |
ClockTypeShowCustomTimeClockCustomTimeStopTimerStartGradientBackColorEndGradientBackColorHourHandColorMinuteHandColorSecondHandColorMinuteColorBorderColorHourHandThicknessMinuteHandThicknessSecondHandThicknessMinuteThicknessShowAMorPMShowBorderShowMinuteShowSecondHandIsTransparentShowClockFrameClockFrameRectangularFrameCircularFrameSquareFrameClockShapeRectangleRoundedRectangleCircleSquareRoundedSquareForeColorBackgroundColorBorderColorDisplayDatesShowHourDesignatorDigitalRendererClockRendererDrawInteriorsender"SecondsHand""MinutesHand""HoursHand"elseLineCapDashStyleusing Syncfusion.Windows.Forms.Tools;
Clock clock1 = new Clock();
clock1.ClockType = ClockTypes.Analog;
clock1.StartGradientBackColor = Color.Black;
clock1.HourHandColor = Color.SkyBlue;
clock1.MinuteHandColor = Color.LightSeaGreen;
clock1.SecondHandColor = Color.LightSteelBlue;
this.Controls.Add(clock1);Imports Syncfusion.Windows.Forms.Tools
Dim clock1 As New Clock()
clock1.ClockType = ClockTypes.Digital
clock1.ShowClockFrame = True
clock1.ClockFrame = ClockFrames.RectangularFrame
Me.Controls.Add(clock1)| Scenario | Properties to Set |
|---|---|
| Show live analog clock | |
| Show digital clock with frame | |
| Freeze at a specific time | |
| Show custom/fixed time | |
| Transparent analog overlay | |
| Custom hand rendering | Subclass |
| Custom digital frame | Subclass |