Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing mm.net web controls
Message
 
To
12/11/2003 17:27:12
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00848727
Message ID:
00849629
Views:
22
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform