Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Control's toolbox Image
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01231115
Message ID:
01231612
Vues:
9
That's a mistake. I did some changes that included renaming the bmp to match the name of the class so they'd match when using the constructor:
[ToolboxBitmap(typeof(NumericTextBox))]
    public class NumericTextBox : TextBox
    {
I've also used:
[ToolboxBitmap(Typeof(NumericTextBox),"EGBClases.NumericTextBox.bmp")]
    public class NumericTextBox : TextBox
    {
And even tried passing the disk path to the file as in:
[ToolboxBitmap(@"C:\Net Proyectos\NetSolucion\EGBClases\Imagenes\NumericTextBox.bmp")]
    public class NumericTextBox : TextBox
    {
But none of them work!

Enmanuel



>Hi there, what exactly is Imagenes.ImgTextBox ?
I'm a mixture of Albert Einstein and Arnold Schwarzenegger. The only trouble is that I got Einstein's body and Schwarzenegger's brain
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform