Article View: borland.public.csharpbuilder.ide.general
Article #134Adding abitmap for a component
From: Francois PIETTE [ICS - MidWare]
Date: Thu, 03 Aug 2006 18:17
Date: Thu, 03 Aug 2006 18:17
15 lines
1656 bytes
1656 bytes
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:
<44d23e1b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.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-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 165859,34bb1006b6327dca,start X-Google-Attributes: gid165859,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Francois PIETTE [ICS - MidWare]" <francois.piette@overbyte.be> Newsgroups: borland.public.csharpbuilder.ide.general Subject: Adding abitmap for a component Date: Thu, 3 Aug 2006 20:17:41 +0200 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 81.243.165.80 Message-ID: <44d23e1b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1154629147 81.243.165.80 (3 Aug 2006 11:19:07 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.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