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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to add appointment in WinForms ScheduleControl?

Platform: WinForms |
Control: ScheduleControl
Tags: appointment

Adding appointment item

You can add the appointment item in Schedule control by implementing the IScheduleAppointment to extend or modify the information managed by the ScheduleAppointment class. The IScheduleAppointment class is used to add the appointment items and save it to the datasource.


private void buttonAdv1_Click(object sender, EventArgs e)
    // Add appointment item -1 
    ArrayListDataProvider dataprovider = new Syncfusion.Schedule.ArrayListDataProvider();
    IScheduleAppointment appointment = dataprovider.NewScheduleAppointment();
    appointment = dataprovider.NewScheduleAppointment();
    // appointment Date & Start time ( 12.00 Pm)
    appointment.StartTime = new System.DateTime(2015, 01, 21, 12, 0, 0); 
    // End time ( 12.30 Pm)
    appointment.EndTime = DateTime.Now.AddMinutes(30); 
    appointment.AllDay = true;
    appointment.Subject = "Business";
    appointment.LabelValue = 1;
    // Save to datasource
    this.scheduleControl1.DataSource = dataprovider;


Private Sub buttonAdv1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles buttonAdv1.Click
    ' Add appointment item -1 
    Dim dataprovider As ArrayListDataProvider = New Syncfusion.Schedule.ArrayListDataProvider()
    Dim appointment As IScheduleAppointment = dataprovider.NewScheduleAppointment()
    appointment = dataprovider.NewScheduleAppointment()
    '  appointment Date & Start time ( 12.00 Pm)
    appointment.StartTime = New System.DateTime(2015, 01, 21, 12, 0, 0)
    '  End time ( 12.30 Pm)
    appointment.EndTime = DateTime.Now.AddMinutes(30)
    appointment.AllDay = True
    appointment.Subject = "Business"
    appointment.LabelValue = 1
    ' Save to datasource
    Me.scheduleControl1.DataSource = dataprovider
End Sub


C#: Add Appointment CS

VB: Add Appointment VB

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
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