Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Control's toolbox Image
Message
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01231115
Message ID:
01231612
Views:
10
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
Previous
Reply
Map
View

Click here to load this message in the networking platform