)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to customize the caption panel in WinForms ScheduleControl?

Platform: WinForms |
Control: ScheduleControl |
Published Date: April 14, 2015 |
Last Revised Date: January 10, 2020
Tags: schedule

Customize the caption panel

You can customize the caption panel 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;
}

VB

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
void HeaderLabel_ForeColorChanged(Object sender, EventArgs e)
    Me.scheduleControl1.HeaderLabel.ForeColor = Color.White

After applying the properties, the grid is displayed as follows,

Customize the caption panel in schedule

Figure 1: Output

Samples:

C#: Captionpanel

VB: Captionpanel

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon