)
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 change the label of the appointments in the calendar of WinForms Schedule?

Platform: WinForms |
Control: ScheduleControl |
Published Date: January 12, 2018 |
Last Revised Date: January 9, 2020

Change the label of appointments

In order to change the label of appointment, ParseDisplayItem event can be used. In that event, label of that appointment can be customized by using e.FormattedText property.

C#

//Event Triggering.
this.scheduleControl1.ParseDisplayItem += new ParseDisplayItemEventHandler(this.scheduleControl1_ParseDisplayItem);
//Event Handling.
private void scheduleControl1_ParseDisplayItem(object sender, ParseDisplayItemEventArgs e)
{
    e.Item.Subject = "Title";
    e.FormattedText = e.Item.StartTime.Hour + ":" + ((System.Convert.ToString(e.Item.StartTime.Minute).Length == 1) ? "0": "") + e.Item.StartTime.Minute + " --> " + e.Item.Subject;  
    e.Handled = true;
}        

VB

'Event triggering.
AddHandler scheduleControl1.ParseDisplayItem, AddressOf scheduleControl1_ParseDisplayItem
'Event Handling
Private Sub scheduleControl1_ParseDisplayItem(ByVal sender As Object, ByVal e As ParseDisplayItemEventArgs)
    e.Item.Subject = "Title"
    e.FormattedText = e.Item.StartTime.Hour & ":" & (If((System.Convert.ToString(e.Item.StartTime.Minute).Length = 1), "0", "")) +    e.Item.StartTime.Minute & " --> " & e.Item.Subject
    e.Handled = True
End Sub

Screenshot

Change the label of appointments in the calendar

Samples:

C#: Customizing Appointmentlabel_CS

VB: Customizing Appointmentlabel_VB

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