Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing mm.net web controls
Message
De
13/11/2003 20:23:07
Eugenio Casal
Futura Tecnologia Informação Consult Ltd
São Paulo, Brésil
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00848727
Message ID:
00849728
Vues:
21
How can I define the default tag prefix for my subclassed web controls?

Thanks in advance.

Eugênio

>>I would like to suggest using the attribute directives in the derived class so when the classes are added to the tool bar they will use their respective bmp images.
>>
>>In VB.net. Note: quotes not included in syntax
>>
>>"<"ToolboxBitmap(GetType(Button))">" Public Class MyButton ........
>>
>
>Good suggestion. For C# dev's, the C# equivalent would be:
>
>
>[ToolboxBitmap(typeof(Button)), DefaultProperty("Text")]
>
>
>There are also other things you can set in this attribute (see the .NET help).
>
>The MM.NET classes already include these attributes, so you can just cut-n-paste them into your own subclasses.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform