FlexChart | ComponentOne
FlexChart Overview / Get Started with WinForms Edition
In This Topic
    Get Started with WinForms Edition
    In This Topic

    FlexChart for WinForms is one of the key controls of ComponentOne WinForms Edition. Switch between the tabs below to know about installing, uninstalling, licensing WinForms Edition and also how to add a control to a WinForms project. For more information about WinForms Edition, visit Getting Started with WinForms Edition.

    Installing WinForms Edition
    In This Topic

    The topic below discusses the procedure of installing WinForms Edition. In order to install the WinForms Edition, please follow the given steps:

    1. Download the C1ControlPanel from https://developer.mescius.com/componentone to install the latest edition of WinForms.
    2. Open the ControlPanel using ComponentOneC1ControlPanel.exe. Note that any running instances of Visual Studio must be closed.
    3. An existing user can login using the registered email address and password.
      If you are a new user:
      • Register with Component One and create an account by filling the required fields.
      • A verification mail will be sent to your email address.
      • Visit the activation link to verify your email address.
      If you do not want to login or register, you can proceed as an anonymous user.
    4. In the WinForms Edition tile, select the checkbox and click on the Proceed button. You can also install all editions by selecting the checkbox against All Editions. Click the View More button to know more about the Edition.

      Installation Overview Image

    5. Upon clicking the Proceed button, a page is displayed asking to review the License Agreement. Click the Accept License Agreement button.
    6. After accepting the License Agreement, another page appears with the Settings and directory path change buttons. The Installation Directory contains all the DLLs, Samples Directory contains the samples from ComponentOne and the Download Directory contains the log files. Click on Accept Settings button to confirm the directory path and start the installation process.
      Directory path settings
    7. The installer installs the controls and display its progress as it does so.

      Installation status progress

    8. The installer displays the "Installation Success" screen when the controls are installed. Note that the version currently installed gets displayed in the respective Edition.

      Successfull installation image

    Note: By default, ControlPanel downloads the latest version of an edition. You can select older versions by clicking on the Change/Repair Version button.

    In case you want to uninstall WPF Edition, see Uninstalling WinForms Edition

    Uninstalling WinForms Edition
    In This Topic

    To uninstall WinForms Edition, follow these steps:

    1. Open the Control Panel using ComponentOneC1ControlPanel.exe.
    2. Unselect the checkbox in the WinForms tile. Note that the checkbox is selected if you have already downloaded the WinForms edition.

      Uninstall process image

    3. After successful uninstallation, the following message appears.

    4. To get information about all the editions you have installed and uninstalled, click the Activities button.

      Activities tab image for installer

    Adding the ComponentOne Controls to WinForms Project
    In This Topic

    ComponentOne controls are automatically added to Visual Studio Toolbox while installing WinForms Edition.

    To use a ComponentOne control, add it to the form or add a reference to the appropriate assembly to your project. In the following example, we will use C1BarCode.

    Note: With some assemblies, like C1Zip, there is no visible component that appears in the Visual Studio Toolbox. In these cases, it is necessary to reference the assembly in your project.

    If ComponentOne controls are not available in the Visual Studio Toolbox after installation, then users need to manually add these controls to the Toolbox.

    Adding a Control to the Toolbox 

    To manually add C1BarCode control to the Visual Studio Toolbox, follow these steps:

    1. Open the Visual Studio IDE (Integrated Development Environment), and the desired Windows Forms project. Make sure the Toolbox is visible (select Toolbox in the View menu if necessary). Right-click within the Toolbox to open its context menu.
    2. To make C1BarCode control appear on its own tab in the Toolbox, select Add Tab from the context menu and provide a tab name (For example, C1BarCode).
    3. Right-click the tab where the component is to appear and select Choose Items from the context menu. Choose Toolbox Items dialog box opens.
    4. In the dialog box, select the .NET Framework Components tab. Sort the list by Namespace (click the Namespace column header) and check the check boxes for all the components belonging to namespace C1.Win.BarCode. Note that there may be more than one components for each namespace.


    Adding a Control to the Form

    To add C1BarCode control to the form in Design view, follow these steps:

    1. Make sure that the control exists in the Toolbox.
    2. Double-click the control name in Visual Studio Toolbox, or drag and drop it onto the form.

    Adding Reference to an Assembly

    To add a reference to the C1BarCode assembly, follow these steps:

    1. Select Add Reference option from Project menu in Visual Studio menu bar.
    2. Select the C1BarCode assembly from the list on the .NET tab or browse to find the C1.Win.BarCode assembly and click OK.
    Note: All .NET 4.5.2 components and controls can be used in WinForms Core 3.1 applications.