Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visual representation of custom controls
Message
De
17/01/2005 07:54:49
 
 
À
17/01/2005 01:22:19
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
00977660
Message ID:
00977710
Vues:
22
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform