Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inheritance Question
Message
Information générale
Forum:
ASP.NET
Catégorie:
Programmation orienté objet
Divers
Thread ID:
00977571
Message ID:
00977582
Vues:
30
All your code remains in the parent(s) class(es) until compilation. You can overload/override/shadow them.


>Mr. Newby @ .Net Here.
>
>I finally figured out how to subclass a form in vb.Net.
>
>I created a form, added the desired controls, and rebuilt
>the form.
>
>Next I selected 'Add', 'Add Inherited Form' from the right-click menu
>on the Solution Explorer and from the 'Instance Picker' dialog, I selected
>the form I wanted to inherit from.
>
>At first, all seemed good. All controls on the base form appeared on the
>inherited form. Yay! Yoo-Hoo! I'm a REAL programmer now!
>
>But, DOOM! HEARTBREAK!
>
>The sub routine I created in the base, 'MyBaseSub', does not appear in the
>inherited form.
>
>In VFP (Yes, I'm a VFP'r at heart) any public PEM's defined in the
>parent class are visible in the child class.
>
>Is this not to be? Where is my parent method?
>
>Anyone want to guide this lost soul?
>
>Thanks!
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform