.NETGURU
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...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification