Category / Section
How to change the back color of PrimeTimeCell and Non-PrimeTimeCell in WinForms ScheduleControl?
1 min read
Change the backcolor of prime and non-prime timecell
You can set the color to the PrimeTimeCell and NonPrimeTimeCell by using the PrimeTimeCellColor and NonPrimeTimeCellColor property.
C#
this.scheduleControl1.Appearance.PrimeTimeCellColor = Color.Pink; this.scheduleControl1.Appearance.NonPrimeTimeCellColor = Color.Wheat;
VB
Me.scheduleControl1.Appearance.PrimeTimeCellColor = Color.Pink Me.scheduleControl1.Appearance.NonPrimeTimeCellColor = Color.Wheat
The following screenshot illustrates the output.
Figure 1: Setting the PrimeTimeCell Color and NonPrimeTimeCell Color
Samples:
C#: PrimeTimeCell
VB: PrimeTimeCell