|
-
Jun 7th, 2005, 08:00 AM
#1
Thread Starter
Member
Icon for Custom Controls/Components [Resolved]
Hello,
I was wondering, how do you set the Icon for a custom control/component so that in the designer you won't get the gear Icon
Thanks
Last edited by OctaneChicken; Jun 7th, 2005 at 08:13 AM.
Dave 
-
Jun 7th, 2005, 08:08 AM
#2
Lively Member
Re: Icon for Custom Controls/Components
 Originally Posted by OctaneChicken
Hello,
I was wondering, how do you set the Icon for a custom control/component so that in the designer you won't get the gear Icon
Thanks
You need to add an attribute.
Here's an Extract from the Help Files.
Code:
[ToolboxBitmap("c:\\stop.bmp")]
public class StopSignControl: System.Windows.Forms.UserControl
{
// Some code
}
Hope that Makes sense.
 StoneTheCrows
_______________
The future will be better tomorrow. (George W. Bush)
(If you think my post was useful, please Rate it. Thanks)
-
Jun 7th, 2005, 08:13 AM
#3
Thread Starter
Member
Re: Icon for Custom Controls/Components [Resolved]
Thank You much. Worked great!!!
Dave 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|