Link to home
Start Free TrialLog in
Avatar of arvsha
arvsha

asked on

Ms Flex grid in c#

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?

Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

You would have to install VB6 in order to use it .

You could use ComponentOne FlexGrid which is available for free at http://msdn.microsoft.com/vbasic/vbrkit/
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.
Avatar of rajaloysious
rajaloysious

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

But i am not sure of using in c#

-cheers
ASKER CERTIFIED SOLUTION
Avatar of TheAvenger
TheAvenger
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial