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
Titre:
Inheritance Question
Divers
Thread ID:
00977571
Message ID:
00977571
Vues:
62
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!
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform