# Disabling Printing

Learn how to disable the printing options available in the C1Schedule for WinForms control.

## Content



By default printing and previewing is enabled in the [C1Schedule](/componentone/docs/win/online-schedule/) control. If you prefer that end-users not be able to print and preview schedule information or your application does not require printing functionality, you can disable printing by using the [IsPrintingEnabled](/componentone/docs/win/online-schedule/) property. If IsPrintingEnabled is set to **False** the C1Schedule control will not try to find and load the **Preview for WinForms** assemblies and will not show printing and print preview options at run time in context menus and in the **AppointmentForm** toolbar.

To disable printing, set the IsPrintingEnabled property to **False** either in the Properties window or in code.

### In the Properties Window

Locate the IsPrintingEnabled property in the C1Schedule Properties window and set it to **False**:

![Properties Window](https://cdn.mescius.io/document-site-files/images/675b9aff-7616-4324-81ac-58e410fb9531/imagesext/image13_20.png)

### In Code

Add the following code to the **Form\_Load** event to set the IsPrintingEnabled property to **False**:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
Me.C1Schedule1.PrintInfo.IsPrintingEnabled = False
```

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.IsPrintingEnabled = false;
```

DOC-DETAILS-TAG-CLOSE