# Customizing the C1BarCode Control

## Content

The Property window provides many design time options to customize the overall appearance of the [C1BarCode](/componentone/api/win/online-barcode/dotnet-framework-api/C1.Win.Barcode.4.8/C1.Win.BarCode.C1BarCode.html) control. These options depend on the type of barcode used in an application. You can also perform run time customization on C1BarCode control using the PropertyGrid control. See the following steps to customize the **C1BarCode** control during run time. This code uses the sample created in the [BarCode for WinForms Quick Start](/componentone/docs/win/online-barcode/BarCodeforWinFormsQuickStart).

1. Add **PropertyGrid** control to the form.
2. Add following code to the **Form\_Load** event.

    ```vbnet
    PropertyGrid1.SelectedObject = C1BarCode1
    ```

    ```csharp
    propertyGrid1.SelectedObject = c1BarCode1;
    ```

The above code sets the **PropertyGrid** to display the options available in the **C1BarCode**.
3\. Run the project\. The following images shows the **CodeType** set to the **QRCode** and the **Text** set to a URL.
![](https://cdn.mescius.io/document-site-files/images/18641448-9858-4b43-8332-7bea221987ba/images/customizingc1barcode.png)