Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visual representation of custom controls
Message
From
17/01/2005 07:54:49
 
 
To
17/01/2005 01:22:19
General information
Forum:
ASP.NET
Category:
Class design
Miscellaneous
Thread ID:
00977660
Message ID:
00977710
Views:
23
Michel,

You can use the ToolboxBitmap attribute to define the custom bitmap. The ToolboxBitmapAttribute class offers a number of constructors including using a embedded resource. The following is taken from the MSDN documentation:-
namespace NamespaceA
{
   [ToolboxBitmap(typeof(ControlA), "MyBitmap.bmp")]
   public class ControlA : System.Windows.Forms.UserControl
   {
      ...
   }
   ...
}
Regards
Neil
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform