473,405 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Multiple icons into 1 exe or dll

JR
Hi,

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

Jan
Aug 30 '06 #1
4 4899
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
Aug 30 '06 #2
"JR" <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/>

Aug 30 '06 #3
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



"Dave Kreskowiak" <Da************@discussions.microsoft.comschreef in
bericht news:00**********************************@microsof t.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


Aug 31 '06 #4
JR
Somebody else has an idee
"JR" <x.*@x.x.schreef in bericht
news:9c********************@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" <Da************@discussions.microsoft.comschreef in
bericht news:00**********************************@microsof t.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



Sep 3 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: mts | last post by:
First, let me say that I hope I have selected the correct discussion group for these questions. I would like to display the version (major.minor.build) of my project in the final build. I can...
3
by: SlasherStanley | last post by:
I have wrote a c# app and included the default app.ico file and then compliled it. When I create a shortcut to the application on the destop, I would like the option of selecting from a choice...
3
by: Tintin | last post by:
Hi all, I Googled without lucky. I want my app has more than one icon like ACDSee or MS Word. Thank in advance.
1
by: Jake Wharton | last post by:
Right now i have embedded an icon file in my project with 6 different individual icons in it. I currently use Bitmap icon = new Bitmap(this.GetType(), "App.ico"); to load in the icon but it...
8
by: Shane Story | last post by:
I would like to embed mutiple icons inside my main exe file so that they can be viewed like Shell32.dll or whatever. Can't figure out how to do this. Sorry if this is in the wrong group. ...
7
by: Siv | last post by:
Hi, I have an MDI application that uses a generic "ShowPage" routine in a module that is called when I want to display a child form. The basic idea is that in the module I have declared each form...
2
by: SharpCoderMP | last post by:
i'm trying to embed multiple program icons in my executable. the only way so far i managed to do that is to embed native win32 resource file with multiple icons. it works, but... when i create a...
2
by: =?Utf-8?B?QXJuZQ==?= | last post by:
I am able to display an icon for my primary form. Now I need to open secondary forms. Who can I load an icon for a secondary form? -- Arne Garvander Certified Geek Professional Data Dude
1
by: Vivienne | last post by:
Hi there This is a hard problem that I have - I have only been using sql for a couple of weeks and have gone past my ability level quickly! The real tables are complex but I will post a simple...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.