πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.csharpbuilder.ide.general
2 messages
2 total messages Started by Francois PIETTE [ICS - MidWare] Thu, 03 Aug 2006 18:17
Adding abitmap for a component
#134
Author: Francois PIETTE [ICS - MidWare]
Date: Thu, 03 Aug 2006 18:17
15 lines
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
Re: Adding a bitmap for a component
#140
Author: Francois Piette [ICS & Midware]
Date: Wed, 09 Aug 2006 13:01
22 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads