ComponentOne TabStrip for ASP.NET AJAX: ComponentOne TabStrip for ASP.NET AJAX Overview > Licensing FAQs > Common Scenarios > Inheriting from licensed components

Inheriting from licensed components

If a component that inherits from a licensed component is created, the licensing information to be stored in the form is still needed. This can be done in two ways:

      Add a LicenseProvider attribute to the component.

This will mark the derive component class as licensed. When the component is added to a form, Visual Studio will create and manage the licenses.licx file, and the base class will handle the licensing process as usual. No additional work is needed. For example:

    [LicenseProvider(typeof(LicenseProvider))]

    class MyGrid: C1.Win.C1FlexGrid.C1FlexGrid

    {

       // ...

    }

      Add an instance of the base component to the form.

This will embed the licensing information into the licenses.licx file as in the previous scenario, and the base component will find it and use it. As before, the extra instance can be deleted after the licenses.licx file has been created.


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.