Information générale
Catégorie:
Contrôles ActiveX
Titre:
Starters : How to subclass a control
Hello,
For advanced VB-developers this could sound like a very stupid question. I've only started working with VB so I'm not that experienced with it.
My problem is that I want to subclass a control (wrapping).
For example for a textbox, I want to make my own textbox (some Usercontrol)....In the class, I would add code for the GotFocus and LostFocus event.
Now when I use the control on my own forms, I want to be able to write extra code for the LostFocus/GotFocus and VB should also execute the code that's in the usercontrol.
In Visual Foxpro there's something like "DO DEFAULT"...but in VB I can't get it working.
Does anyone has a clue?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement