# Hiding Private Appointments

Learn how to hide private Appointments using the HidePrivateAppointments property in C1Schedule for WinForms control.

## Content



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](/componentone/docs/win/online-schedule/) property. If HidePrivateAppointments is set to **True** the [C1Schedule](/componentone/docs/win/online-schedule/) 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](https://cdn.mescius.io/document-site-files/images/675b9aff-7616-4324-81ac-58e410fb9531/imagesext/image13_25.png)

### In Code

Add the following code to the **Form\_Load** event to set the HidePrivateAppointments property to **True**:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
Me.C1Schedule1.PrintInfo.HidePrivateAppointments = True
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
this.c1Schedule1.PrintInfo.HidePrivateAppointments = true;
```

DOC-DETAILS-TAG-CLOSE