ComponentOne BarCode for WinForms
Customizing the C1BarCode Control

The Property window provides many design time options to customize the overall appearance of the C1BarCode 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 section.

  1. Add PropertyGrid control to the form.
  2. Add following code to the Form_Load event.
    Visual Basic
    Copy Code
    PropertyGrid1.SelectedObject = C1BarCode1
    
    C#
    Copy Code
    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.