Home All Groups Group Topic Archive Search About

Multiple icons into 1 exe or dll

Author
30 Aug 2006 6:49 PM
JR
Hi,

How can I add multible icons into 1 file likeSHELL32.dll from windows it has
about 50

Jan

Author
30 Aug 2006 7:27 PM
Dave Kreskowiak
You can add your icons to your project simply by adding them as existing
files.  Just remember to click on each of the icon files in Solution Explorer
and in the Properties for that file, click on Build Action and set it to
Embedded Resource.

--
<i><b>RageInTheMachine9532</b></i><font size="-2">
"<i>...a pungent, ghastly, stinky piece of cheese!</i>" <b>-- The Roaming
Gnome</b></font>


Show quoteHide quote
"JR" wrote:

> Hi,
>
> How can I add multible icons into 1 file likeSHELL32.dll from windows it has
> about 50
>
> Jan
>
>
>
Author
31 Aug 2006 4:34 PM
JR
Hi,

try it out
it wont work.
this is ny code
Module Module1

Sub main()

MsgBox("Test: some icons")

End Sub

End Module



I added 7 icons

places them as embedded resource

F5 to compile and run. I have my messagebox.



I maded i link tryed to change the icon but ony one (default) icon

I can change the default icon into another. but can't add them all





Jan







Show quoteHide quote
"Dave Kreskowiak" <DaveKreskow***@discussions.microsoft.com> schreef in
bericht news:007D94CC-BB70-4EBD-98AC-FFF9F22F0FF6@microsoft.com...

> You can add your icons to your project simply by adding them as existing
> files.  Just remember to click on each of the icon files in Solution
> Explorer
> and in the Properties for that file, click on Build Action and set it to
> Embedded Resource.
>
> --
> <i><b>RageInTheMachine9532</b></i><font size="-2">
> "<i>...a pungent, ghastly, stinky piece of cheese!</i>" <b>-- The Roaming
> Gnome</b></font>
>
>
> "JR" wrote:
>
>> Hi,
>>
>> How can I add multible icons into 1 file likeSHELL32.dll from windows it
>> has
>> about 50
>>
>> Jan
>>
>>
>>
Author
3 Sep 2006 5:40 PM
JR
Somebody else has an idee
Show quoteHide quote
"JR" <x.x@x.x.> schreef in bericht
news:9cEJg.51517$nc4.485448@phobos.telenet-ops.be...
> Hi,
>
> try it out
> it wont work.
> this is ny code
> Module Module1
>
> Sub main()
>
> MsgBox("Test: some icons")
>
> End Sub
>
> End Module
>
>
>
> I added 7 icons
>
> places them as embedded resource
>
> F5 to compile and run. I have my messagebox.
>
>
>
> I maded i link tryed to change the icon but ony one (default) icon
>
> I can change the default icon into another. but can't add them all
>
>
>
>
>
> Jan
>
>
>
>
>
>
>
> "Dave Kreskowiak" <DaveKreskow***@discussions.microsoft.com> schreef in
> bericht news:007D94CC-BB70-4EBD-98AC-FFF9F22F0FF6@microsoft.com...
>
>> You can add your icons to your project simply by adding them as existing
>> files.  Just remember to click on each of the icon files in Solution
>> Explorer
>> and in the Properties for that file, click on Build Action and set it to
>> Embedded Resource.
>>
>> --
>> <i><b>RageInTheMachine9532</b></i><font size="-2">
>> "<i>...a pungent, ghastly, stinky piece of cheese!</i>" <b>-- The Roaming
>> Gnome</b></font>
>>
>>
>> "JR" wrote:
>>
>>> Hi,
>>>
>>> How can I add multible icons into 1 file likeSHELL32.dll from windows it
>>> has
>>> about 50
>>>
>>> Jan
>>>
>>>
>>>
>
>
>
Author
30 Aug 2006 9:21 PM
Herfried K. Wagner [MVP]
"JR" <x.x@x.x.> schrieb:
> How can I add multible icons into 1 file likeSHELL32.dll from windows it
> has about 50

You'll have to add them as unmanaged Win32 resources.  IIRC this is not
supported by the IDE.  However, you can compile the files using the command
line compiler.  Win32 resource files (RES files) can be created using VS.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>