Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Starters : How to subclass a control
Message
From
07/08/2000 13:29:36
 
 
General information
Forum:
Visual Basic
Category:
ActiveX controls
Miscellaneous
Thread ID:
00401775
Message ID:
00401851
Views:
23
Welcome to VB world! Since VB doesn't support inheritance (until version 7), you are limited to cut & paste.
>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform