Custom Icons
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngcontrolscs' list.


Robm
Hello

I want to have a custom icon placed next to each custom control that I crea=
te.=20
Within my custom control project, I have numerous custom controls each with=
in their own file.
How do I create a separate custom icon for each control class file?

I have seen one example where you name a bitmap (16 x 16) the same as the =
class, then change its property to embedded resource. But this did not work=
for me.

Any steps that I am missing?

Thanks,

Robert Merriott
.Net Developer

Reply to this message...
 
    
Robm
I have found some additional documentation within the .Net Help files. But =
still not able to get a custom icon to show. However, I am able to get Syst=
em.Web.UI.WebControl icons to show such as the calendar and button icons us=
ing the following code above my class.

System.Drawing.ToolboxBitmap(typeof(Calendar))

Although, I think that the pre-designed icons will work for my needs, I am =
still curious to know why I can't get my embedded icon to show.=20

I tried the following, but it failed to work.

System.Drawing.ToolboxBitmap(typeof(myClass))

myClass being the name of the class, as well as the bitmap. (myClass.bmp)

myClass.bmp is 16 x 16 and selected to be an embedded resource.

Thanks,

Robert Merriott
.Net Developer

>>> Click here to reveal e-mail address 08/13/02 01:56PM >>>
Hello

I want to have a custom icon placed next to each custom control that I crea=
te.=20
Within my custom control project, I have numerous custom controls each with=
in their own file.
How do I create a separate custom icon for each control class file?

I have seen one example where you name a bitmap (16 x 16) the same as the =
class, then change its property to embedded resource. But this did not work=
for me.

Any steps that I am missing?

Thanks,

Robert Merriott
.Net Developer

| [aspngcontrolscs] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspngcontrolscs.asp =3D JOIN/QUIT
| http://www.asplists.com/search =3D SEARCH Archives

Reply to this message...
 
 




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com