Scheduler for WinForms | ComponentOne
Scheduler Control / Print and Preview / Hiding Private Appointments
In This Topic
    Hiding Private Appointments
    In This Topic

    By default, Scheduler for WinForms prints private appointments when data is printed. If you prefer that end-users not print private appointments, you can change this using the HidePrivateAppointments property. If HidePrivateAppointments is set to True the C1Schedule control will not print private appointments when printing the schedule.

    To hide private appointments, set the HidePrivateAppointments property to True either in the Properties window or in code.

    In the Properties Window

    Locate the HidePrivateAppointments property in the C1Schedule Properties window and set it to True:

    Properties Window

    In Code

    Add the following code to the Form_Load event to set the HidePrivateAppointments property to True:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    Me.C1Schedule1.PrintInfo.HidePrivateAppointments = True
    

    To write code in C#

    C#
    Copy Code
    this.c1Schedule1.PrintInfo.HidePrivateAppointments = true;