Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / December 2004

Tip: Looking for answers? Try searching our database.

Problem with Inheriting from ActiveX Controls

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Erik Crank - 10 Nov 2004 15:24 GMT
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?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.