Article View: borland.public.csharpbuilder.ide.general
Article #140Re: Adding a bitmap for a component
From: Francois Piette [ICS & Midware]
Date: Wed, 09 Aug 2006 13:01
Date: Wed, 09 Aug 2006 13:01
22 lines
1909 bytes
1909 bytes
No answer for this one ? francois.piette@overbyte.be http://www.overbyte.be "Francois PIETTE [ICS - MidWare]" <francois.piette@overbyte.be> a οΏ½crit dans le message de news:44d23e1b$1@newsgroups.borland.com... > I'm in the process of creating a non-visual component. The component works > well and can be selected in the component palette, dropped on a form and > handled with the object inspector. But it has a default icon. Searching > google, I've found I have to add and attrinute to specify the icon. So I > added just above my component class the line: > [ToolboxBitmap(typeof(MyClass), "My16colorsBitmap.bmp")] > I also added the bmp file to the assembly project. > Rebuilding the assembly gave no error but still default icon displayed. > What could be the problem ? > > -- > francois.piette@overbyte.be > The author for the freeware multi-tier middleware MidWare > The author of the freeware Internet Component Suite (ICS) > http://www.overbyte.be
Technical Details
Message-ID:
<44d9dceb$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44d23e1b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 165859,34bb1006b6327dca X-Google-Attributes: gid165859,public X-Google-Language: ENGLISH,ASCII From: "Francois Piette [ICS & Midware]" <francois.piette@overbyte.be> Newsgroups: borland.public.csharpbuilder.ide.general References: <44d23e1b$1@newsgroups.borland.com> Subject: Re: Adding a bitmap for a component Date: Wed, 9 Aug 2006 15:01:11 +0200 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 NNTP-Posting-Host: 62.197.126.228 Message-ID: <44d9dceb$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1155128555 62.197.126.228 (9 Aug 2006 06:02:35 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail