Toolboxbitmap Attribute for custom control

Discussion in 'ASP .Net Building Controls' started by studen771, Apr 29, 2006.

  1. studen771

    studen771 Guest

    THanks in advance to anyone who can help :)

    The only way I'm able to add my custom 16x16 toolbarbitmap image is by using
    the ToolbarBitmap constructor:
    ToolbarBitmap(//path to imagefilename)

    I'm unable to get it to display embedding it has a 'resource' in the
    assembly the control's class is contained in (either by using 2 of the other
    remaining constructors for the ToolbarBitmap class)

    I'm using VS.Net 2005 and this is driving me crazy. I want to keep the image
    as a resource within the assembly to keep everything self contained.

    Anyone?
     
    studen771, Apr 29, 2006
    #1
    1. Advertising

  2. studen771

    studen771 Guest

    Ha! I corrected the issue there was an issue with the bitmap file it was
    using.

    "studen771" wrote:

    > THanks in advance to anyone who can help :)
    >
    > The only way I'm able to add my custom 16x16 toolbarbitmap image is by using
    > the ToolbarBitmap constructor:
    > ToolbarBitmap(//path to imagefilename)
    >
    > I'm unable to get it to display embedding it has a 'resource' in the
    > assembly the control's class is contained in (either by using 2 of the other
    > remaining constructors for the ToolbarBitmap class)
    >
    > I'm using VS.Net 2005 and this is driving me crazy. I want to keep the image
    > as a resource within the assembly to keep everything self contained.
    >
    > Anyone?
     
    studen771, Apr 29, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dave
    Replies:
    0
    Views:
    463
  2. Igor

    Problem with ToolboxBitmap

    Igor, Jul 21, 2003, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    268
    Gabriel
    Aug 15, 2003
  3. Matt Sokol
    Replies:
    2
    Views:
    426
    Theo Tillotson
    Aug 7, 2003
  4. Nathan Sokalski

    Using the System.Drawing.ToolboxBitmap Attribute

    Nathan Sokalski, Jan 9, 2009, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    1,270
    Nathan Sokalski
    Jan 9, 2009
  5. TJ
    Replies:
    4
    Views:
    388
    Steven Cheng[MSFT]
    Apr 7, 2006
Loading...

Share This Page