Results 1 to 3 of 3

Thread: Icon for Custom Controls/Components [Resolved]

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2004
    Location
    Canada
    Posts
    47

    Question 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

  2. #2
    Lively Member StoneTheCrows's Avatar
    Join Date
    Dec 2004
    Location
    UK
    Posts
    71

    Re: Icon for Custom Controls/Components

    Quote 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)

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2004
    Location
    Canada
    Posts
    47

    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
  •  



Click Here to Expand Forum to Full Width