Add icon to my ServerControl?

  • Thread starter Thread starter Lars Netzel
  • Start date Start date
L

Lars Netzel

How do I add an Icon to be compiled with my WebCustomControl I just built. I
want to have my own Icon when adding it to the toolbox.

Going into the properties in the project itself and then the Build header...
the icon seltor field is disabled.. why?

/Lars
 
Lars Netzel said:
How do I add an Icon to be compiled with my WebCustomControl I just built.
I want to have my own Icon when adding it to the toolbox.

In VS.NET, add to your project a 16x16 bitmap with the same name as the
control. Set its build action in its properties to "Embedded resource". This
should work.

There is also a ToolboxBitmapAttribute which you can use on the control, but
I don't know that I've ever used that.
Going into the properties in the project itself and then the Build
header... the icon seltor field is disabled.. why?

Because that's not what it's for.

John Saunders
 
Back
Top