Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Starters : How to subclass a control
Message
From
08/08/2000 07:58:43
 
 
To
07/08/2000 16:11:27
General information
Forum:
Visual Basic
Category:
ActiveX controls
Miscellaneous
Thread ID:
00401775
Message ID:
00402139
Views:
16
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform