Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hey you Object, Hey you!
Message
De
15/11/2003 23:17:38
 
 
À
15/11/2003 11:18:58
Information générale
Forum:
ASP.NET
Catégorie:
Migration
Divers
Thread ID:
00850229
Message ID:
00850379
Vues:
14
>Glenn,
>
>Parents can be referenced like this:
>
>Me.Parent
>Me.ParentForm
>
Hold on a sec, correct me if I'm wrong. There is no containership in .Net like there is in VFP. So, where....

This.Parent for a button in VFP will give you a reference to the form...

This.Parent (C#) or Me.Parent (VB.Net) represents the class that the current object derives from. The equivelent in VFP would be ParentClass::Method().

There actually is no "instance level" code in .Net. For example, when you put a Button on a form, there is not 'click' method to put code in, you create a method in the form that will handle and event that is raised by the button. As I said, there is no containership in .Net.

At least, this is in web forms, I haven't done much at all with win forms.

BOb
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform