Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing mm.net web controls
Message
 
À
12/11/2003 17:27:12
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00848727
Message ID:
00849629
Vues:
24
>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.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform