Using the System.Drawing.ToolboxBitmap Attribute

Discussion in 'ASP .Net Building Controls' started by Nathan Sokalski, Jan 9, 2009.

  1. I have been trying for months to get the System.Drawing.ToolboxBitmap
    attribute to work. I have been able to get it to work when simply entering
    the location of the *.ico or *.bmp on your local machine, but I want to
    store my *.ico files as Embedded Resources so that they can be part of the
    assembly. I have looked at dozens of sites for help, and most of them told
    me the same thing or directed me to
    http://www.bobpowell.net/toolboxbitmap.htm
    .. I feel that I have tried everything, yet still with no success. With the
    number of postings I have found on different forums about other people
    having trouble using this attribute as well, I am wondering why Visual
    Studio 2008 doesn't have a tool to help you add this attribute (I'm willing
    to bet that it's one of the more commonly used ones; all third-party
    controls that I've ever seen have custom icons). Does anybody have any
    ideas, or know of a Visual Studio 2008 add-on that can help do this? Thanks.
    --
    Nathan Sokalski

    http://www.nathansokalski.com/
     
    Nathan Sokalski, Jan 9, 2009
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.