all groups > dotnet windows forms designtime > march 2005 >
You're in the

dotnet windows forms designtime

group:

How to specify an icon for component in toolbox?


How to specify an icon for component in toolbox? Frank Kwong via DotNetMonster.com
3/28/2005 12:00:00 AM
dotnet windows forms designtime:
I am making a simple non-visual component and I can load that into the
toolbox such that the test WinForm application can drop it into the form.
The default icon for this component is a "gear" when I added that to the
toolbox. How can I change it to the icon of my choice and how can I create
a tab in the toolbox and call it "My Component" to hold my components.

Thanks in advance,


Frankk

--
Re: How to specify an icon for component in toolbox? Frank Kwong via DotNetMonster.com
3/28/2005 3:57:54 PM
got it...
Just make the 16x16x16 bmp name the same as control and embed it in the
resource an then ->

[ToolboxBitmap(typeof(aname))]
public class aname : System.ComponentModel.Component

Frankk

--
AddThis Social Bookmark Button