I created a .NET control that derives from an ActiveX control. First I
generated an ActiveX wrapper using AXIMP.exe. Next, I created my own class
that derives from the wrapper control.
The problem is that the properties that I add to my .NET control do not
appear correctly in the property grid when I add an instance of the control
to a form. I attached a debugger to the Visual Studio environment and
discovered that an exception occurs in AxPropertyDescriptor.get_Converter.
Is there a way to add properties to a control that derives from an ActiveX
wrapper so that they are displayed correctly in the property grid?
Erik Crank - 01 Dec 2004 16:31 GMT
Although I was able to overcome this problem by adding the
System.Runtime.InteropServices.DispIdAttribute to each of my properties, I
then ran into a different problem. The Visual Studio designer clears all of
my properties each time it opens the form that contains my control. I don't
have a solution for this problem.
> I created a .NET control that derives from an ActiveX control. First I
> generated an ActiveX wrapper using AXIMP.exe. Next, I created my own class
[quoted text clipped - 7 lines]
> Is there a way to add properties to a control that derives from an ActiveX
> wrapper so that they are displayed correctly in the property grid?