Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Starters : How to subclass a control
Message
From
07/08/2000 15:09:50
 
 
To
07/08/2000 14:06:07
General information
Forum:
Visual Basic
Category:
ActiveX controls
Miscellaneous
Thread ID:
00401775
Message ID:
00401880
Views:
21
Unless I misread the original post, the question was how to execute the code in the subclass and in the parent class. You may acheive this result by creating an ActiveX control and using hooks, but it's ugly and a PITA to maintain.
>Not true. Since Koen refers to the UserControl control, and has posted this message under "ActiveX Controls", I assume that we are dealing with a case of trying to wrap a control in an ActiveX DLL for later use. Not inheritance, true, but it works for a lot of common circumstances (and seems to be what the original post is asking about).
>
>Indeed, you can wrap a control into an active-x dll, expose events with the same name, and then execute however many methods you want. It's a bit of a chore, once it goes beyond simple functionality. In fact, I would need to hear exactly what the issue/problem/step in the process is, before giving a good one-paragraph solution. There are many books that deal with how to create an ActiveX control in VB so it may be worth a trip to Barnes and Noble. Have a coffee and take some notes (or re-post with more details).
>
>Note that there are several known bugs.... urhhhh.... "issues" when assigning design-time property defaults via the PropertyBags, but with method calls I haven't had problems.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform