Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form inheritance
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00826800
Message ID:
00830080
Vues:
19
Thanks for the info and the pointer to the article.

Al

>It's quite simple actually. Just create your master form then all you do is inherit from it by using the standard .Net subclassing mechanisms:
>
>using MyApp.Namespace; // or whereever MyTemplateForm is defined.
>
>class MyAppForm : MyTemplateForm
>{
> ...
>}
>
>The catch is you have to do this in code - there's no way to have the VS editors automatically subclass - you have to create a regular form then add the subclassing stuff yourself.
>
>Now if you're talking about control inheritance that's a little difference, You will get the controls but have little control over those controls from the parent class...
>
>Markus Egger had an article about this a couple of years back in Code Magazine which pointed out what you could and couldn't do with .Net form and control inheritance.
>
>+++ Rick ---
>
>>Hi,
>>
Al Williams

Anola MB, CANADA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform