Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing mm.net web controls
Message
From
13/11/2003 20:23:07
Eugenio Casal
Futura Tecnologia Informação Consult Ltd
São Paulo, Brazil
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00848727
Message ID:
00849728
Views:
19
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform