473,660 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4911
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>RageInThe Machine9532</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.schrie b:
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.mi crosoft.comschr eef in
bericht news:00******** *************** ***********@mic rosoft.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>RageInThe Machine9532</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.schree f in bericht
news:9c******** ************@ph obos.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.mi crosoft.comschr eef in
bericht news:00******** *************** ***********@mic rosoft.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>RageInTh eMachine9532</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
1194
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 do it, I can see it, but what I would like to understand better is just when do the individual parts increment. My concern is that I created my last beta version, loaded it with the setup project I created and on those BETA machines, the Build...
3
2337
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 of icons that are built into the file. How do I include the icons in my application for this to work? Thanks
3
1771
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
2526
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 will only work on the first icon. I've stumbled upon a class called MultiIcon (http://www.codeproject.com/dotnet/MultiIcon.asp) which allows you to select an individual icon. My problem is how to load the resource into this class. I've added my...
8
5205
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. Wasn't sure where to ask.. Thanks,
7
3100
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 as follows: Friend F0 As frmMain Friend F1 As frmStart Friend F2 As frmSearch Then in my ShowPage routine (which is passed a string "pageToShow" which is the name of the form I wish to open), I first check to see if we already have an instance...
2
3435
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 native win32 resource file with the VS 2005 and put there my icons, VS always converts some of the 32bit icons into 24bit - so i loose alpha blending what makes my icons look ugly. I did an experiment and created a icon file with full range of...
2
1747
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
2218
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 and a real version with the hope someone can help me. Any help would be much appreciated - I would also be happy to pay someone to actually do it if it takes time to work out as I know that its hard when all your help is free :)...
0
8428
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8851
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8542
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8630
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7362
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2760
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1984
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.