Home All Groups Group Topic Archive Search About

Icon for User control

Author
10 Jul 2006 7:37 PM
JR
Hi,

I maked some controls into a DLL the work fine

Now I want to add a icon for each control. i converted the icons  into bmp
I added the line
<ToolboxBitmap(GetType(ctrl_DigiKlok), "DigKlok.bmp")>

in fron of the class

but I still have that old default and stupid icon from ms

when I recompile i DON'T have an error

I work with VB.net 2003

Author
11 Jul 2006 2:46 AM
Smokey Grindle
I don't believe that user controls will show toolbox icons.. Ive never seen
it work myself, ive only had it work on custom controls.

Show quoteHide quote
"JR" <x.x@x.x.> wrote in message
news:20ysg.529749$842.12929074@phobos.telenet-ops.be...
> Hi,
>
> I maked some controls into a DLL the work fine
>
> Now I want to add a icon for each control. i converted the icons  into bmp
> I added the line
> <ToolboxBitmap(GetType(ctrl_DigiKlok), "DigKlok.bmp")>
>
> in fron of the class
>
> but I still have that old default and stupid icon from ms
>
> when I recompile i DON'T have an error
>
> I work with VB.net 2003
>
>
>
>
>
>
Author
15 Jul 2006 5:33 AM
JR
where for is the option:
ToolboxBitmap

if it does not work

Show quoteHide quote
"Smokey Grindle" <nospam@dontspamme.com> schreef in bericht
news:OznjCRJpGHA.756@TK2MSFTNGP05.phx.gbl...
>I don't believe that user controls will show toolbox icons.. Ive never seen
>it work myself, ive only had it work on custom controls.
>
> "JR" <x.x@x.x.> wrote in message
> news:20ysg.529749$842.12929074@phobos.telenet-ops.be...
>> Hi,
>>
>> I maked some controls into a DLL the work fine
>>
>> Now I want to add a icon for each control. i converted the icons  into
>> bmp
>> I added the line
>> <ToolboxBitmap(GetType(ctrl_DigiKlok), "DigKlok.bmp")>
>>
>> in fron of the class
>>
>> but I still have that old default and stupid icon from ms
>>
>> when I recompile i DON'T have an error
>>
>> I work with VB.net 2003
>>
>>
>>
>>
>>
>>
>
>