Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Starters : How to subclass a control
Message
De
07/08/2000 15:09:50
 
 
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Divers
Thread ID:
00401775
Message ID:
00401880
Vues:
22
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform