How to customize caption panel in WinForms Scheduler?
Customize the caption panel
You can customize the caption panel in the WinForms ScheduleControl by using the HeaderLabel property and ForeColorChanged event.
C#
this.scheduleControl1.Appearance.CaptionBackColor = Color.Pink;
this.scheduleControl1.HeaderLabel.ForeColor = Color.White;
//change the size of the panel.
this.scheduleControl1.CaptionPanel.Size = new System.Drawing.Size(10, 50);
//set the color.
this.scheduleControl1.HeaderLabel.ForeColorChanged += HeaderLabel_ForeColorChanged;
void HeaderLabel_ForeColorChanged(object sender, EventArgs e)
{
this.scheduleControl1.HeaderLabel.ForeColor = Color.White;
}
Me.scheduleControl1.Appearance.CaptionBackColor = Color.Pink
Me.scheduleControl1.HeaderLabel.ForeColor = Color.White
'change the size of the panel.
Me.scheduleControl1.CaptionPanel.Size = New System.Drawing.Size(10, 50)
'set the color.
AddHandler Me.scheduleControl1.HeaderLabel.ForeColorChanged, AddressOf HeaderLabel_ForeColorChanged
Private Sub HeaderLabel_ForeColorChanged(ByVal sender As Object, ByVal e As EventArgs)
Me.scheduleControl1.HeaderLabel.ForeColor = Color.White
End Sub
Figure 1: Output
Samples:
C#: Captionpanel
VB: Captionpanel
Conclusion
I hope you enjoyed learning on how to customize caption panel in ScheduleControl.
You can refer to our WinForms ScheduleControl feature tour page to know about its other groundbreaking feature representations and WinForms ScheduleControl documentation and how to quickly get started for configuration specifications. You can also explore our WinForms ScheduleControl example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!