Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Starters : How to subclass a control
Message
De
08/08/2000 07:58:43
 
 
À
07/08/2000 16:11:27
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Divers
Thread ID:
00401775
Message ID:
00402139
Vues:
17
Yes, but what if you wanted some basic code to execute in the ActiveX control and in some specialized code the user control for the GotFocus() event? I guess you can acheive this behaviour by using hooks, but it's ugly.
>If I get it right, all you need is to code a ActiveX control.
>
>In your UserControl Code (ActiveX control), you place your code for the LostFocus and GotFocus (ex: highlight text).
>
>Now, all you have to do is to put your new ActiveX control in your project.
>And because you have a LostFocus and GotFocus event for your ActiveX / UserControl (the one you have just created), you can handle the event in your project.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform