Still cant get toolbox icon to display for my custom control

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Still cant get toolbox icon to display for my custom control

    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 Guest

  2. Similar Questions and Discussions

    1. Custom control in toolbox, intellisense?
      Below is some custom control code to create a tab strip taken from ASP.NET 2.0 Unleashed by Stephen Walther. It works, but I need to clarify some...
    2. Default toolbox tab for custom control?
      Is there any attribute i can add to a custom control class, similar to <ToolboxData()> which would allow me to set a default tab in the toolbox...
    3. Custom Control and Toolbox not working
      Yesterday i was creating custom controls and adding them to a project as a reference. Things were great. As I created a new control it would show...
    4. Unable to load custom control in Toolbox
      Hi, I have built a set of custom ASP.Net contols quite some time ago (in VB) and successfully placed them on the Toolbox. Since then I have...
    5. How to have toolbox icon appear for custom control?
      I want my custom control to have its own toolbox icon. I create the bmp file and it has the same name as the control class. I then set it to...
  3. #2

    Default Re: Still cant get toolbox icon to display for my custom control

    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 :
    [url]http://www.aspalliance.com/graymad/VS_Icon.aspx[/url]

    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 [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur Guest

  4. #3

    Default Re: Still cant get toolbox icon to display for my custom control

    Thanks i 'll give that a try

    "Natty Gur" <natty@dao2com.com> wrote in message
    news:%23CjBmxAUDHA.560@TK2MSFTNGP10.phx.gbl...
    > 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 :
    > [url]http://www.aspalliance.com/graymad/VS_Icon.aspx[/url]
    >
    > 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 [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    Showjumper Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139