Ms Flex grid in c#

Posted on 2004-11-08
Last Modified: 2012-08-13
Well I am trying to use the msflex grid control in c# but while dropping the control it gives an error that "You don't have license to use this activeX control". The ocx for this control is msflxgrd.ocx
What is the solution please let me know ASAP?

Question by:arvsha
    LVL 69

    Expert Comment

    by:Éric Moreau
    You would have to install VB6 in order to use it .

    You could use ComponentOne FlexGrid which is available for free at
    LVL 48

    Expert Comment

    If you are using the Flexgrid then MSFLXGRD.OCX needs to be distributed
    with your application and registered on the target machine. In addition,
    be sure to distribute the two managed wrapper classes that were generated
    when you sited the control on the form.

    The reason I asked about how you are using the control is because when you
    use the control at design-time you need to have a design-time license for
    the control. This license will get installed on your dev machine when you
    install VB6. However, it shouldn't need that license at runtime. For some
    reason it sounds like it is checking for a license for the control at
    runtime. I have seen this happen if a control is not cited on a form but
    dynamically by code.

    It seems like the flexgrid is depending on other dll's from VB6 or even need's a design license on the target machine. I've tried to include other dll's, but I haven't gotten any further. I have converted my usercontrol to use a datagrid. It works ok, but it isn't as flexible as the flexgrid solution.
    LVL 8

    Expert Comment

    Try this - may be of help....
    Add this reference to your project.. AxInterop.MSFlexGridLib.dll

    But i am not sure of using in c#

    LVL 20

    Accepted Solution


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now