Still cant get toolbox icon to display for my custom control

Discussion in 'ASP .Net' started by Showjumper, Jul 22, 2003.

  1. Showjumper

    Showjumper Guest

    I still cant get an icon to display for my custom server control in the
    toolbox. I create a bmp that is the same name as the class of the control. I
    set it to embedded resource and then build but it still wont show. I am
    using vbnet for my controls but have also tried it w/ controls written in
    c# - doesnt work in either case. So what am i missing? A namespace maybe?
    Thanks...
     
    Showjumper, Jul 22, 2003
    #1
    1. Advertising

  2. Showjumper

    Natty Gur Guest

    Perhaps a namespace problem:

    Should be like this:

    [ToolboxBitmap(typeof(TestControl), "namespace.TestControl.bmp")]

    Where namespace is the full one for the TestControl. Also the file name
    is
    related to it's location in the project.

    refer to :
    http://www.aspalliance.com/graymad/VS_Icon.aspx

    Natty Gur, CTO
    Dao2Com Ltd.
    28th Baruch Hirsch st. Bnei-Brak
    Israel , 51114

    Phone Numbers:
    Office: +972-(0)3-5786668
    Fax: +972-(0)3-5703475
    Mobile: +972-(0)58-888377

    Know the overall picture


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    Natty Gur, Jul 22, 2003
    #2
    1. Advertising

  3. Showjumper

    Showjumper Guest

    Thanks i 'll give that a try

    "Natty Gur" <> wrote in message
    news:%...
    > Perhaps a namespace problem:
    >
    > Should be like this:
    >
    > [ToolboxBitmap(typeof(TestControl), "namespace.TestControl.bmp")]
    >
    > Where namespace is the full one for the TestControl. Also the file name
    > is
    > related to it's location in the project.
    >
    > refer to :
    > http://www.aspalliance.com/graymad/VS_Icon.aspx
    >
    > Natty Gur, CTO
    > Dao2Com Ltd.
    > 28th Baruch Hirsch st. Bnei-Brak
    > Israel , 51114
    >
    > Phone Numbers:
    > Office: +972-(0)3-5786668
    > Fax: +972-(0)3-5703475
    > Mobile: +972-(0)58-888377
    >
    > Know the overall picture
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it!
     
    Showjumper, Jul 22, 2003
    #3
    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. Miro Durcik

    app.rc resource's icon to .net Icon

    Miro Durcik, Oct 9, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    1,437
    Miro Durcik
    Oct 9, 2004
  2. Showjumper
    Replies:
    2
    Views:
    2,439
    Benjie Fallar
    Jul 18, 2003
  3. Nagaraj
    Replies:
    1
    Views:
    920
    Lionel B
    Mar 1, 2007
  4. Shawn B.

    Toolbox icon

    Shawn B., Jul 30, 2003, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    190
    Teemu Keiski
    Jul 31, 2003
  5. Ladislav Kepl

    toolbox control icon

    Ladislav Kepl, Dec 2, 2003, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    332
    Ladislav Kepl
    Dec 3, 2003
Loading...

Share This Page