473,385 Members | 1,387 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,385 software developers and data experts.

Compile app with icons

How can i compile my application with more than 1 icon ? i have tryied
adding external .ico to the solution and settign them to content or resource
but then they are not visible as normal icons of the file, just the primary
one is.

I need my app to include 3 icons in its .exe so i can use them in explorer
extensions for windows.

Thanks,
Christian

Jun 27 '08 #1
3 1046
You can add an icon to each form, or use a resource file to load into an
image control.

--
David Glienna
MVP - Visual Developer (Visual Basic)
2006 thru 2008
"Christian Reizlein" <cr*******@hotmail.comwrote in message
news:75**********************************@microsof t.com...
How can i compile my application with more than 1 icon ? i have tryied
adding external .ico to the solution and settign them to content or
resource but then they are not visible as normal icons of the file, just
the primary one is.

I need my app to include 3 icons in its .exe so i can use them in explorer
extensions for windows.

Thanks,
Christian

Jun 27 '08 #2
Hi Christian,

VB doesn't expose this as such (at least not that I know of). If you aren't
singing your app, you can modify the app's Win32 resource file by opening
the exe in Visual Studio (you may need to have C++ instaleld for that, not
sure). Generally though, that's a real pain in the .... you know where ...
<g>, so what I do is use a satellite dll or multiples of as native resource
dlls as opposed to managed resource dll's.

"Christian Reizlein" <cr*******@hotmail.comwrote in message
news:75**********************************@microsof t.com...
How can i compile my application with more than 1 icon ? i have tryied
adding external .ico to the solution and settign them to content or
resource but then they are not visible as normal icons of the file, just
the primary one is.

I need my app to include 3 icons in its .exe so i can use them in explorer
extensions for windows.

Thanks,
Christian
Jun 27 '08 #3
How can i compile my application with more than 1 icon ? i have tryied
adding external .ico to the solution and settign them to content or resource
but then they are not visible as normal icons of the file, just the primary
one is.

I need my app to include 3 icons in its .exe so i can use them in explorer
extensions for windows.
This may be possible with vs 2005 project resources, but I don't know
anything about that.

The way I do it is from vs 2003 (and I still use it in vs2005) is as follows.

1. Add the .ico files to your project (Project, Add Existing Item).
2. For each file, set its Build Action to Embedded Resource (select the
file, look in the Properties window).
3. Access the icon as in the code below. If you added "lighton.ico", use

Dim s As String = Application.ProductName & ".lighton.ico"
Icon = New
Icon(Reflection.Assembly.GetExecutingAssembly.GetM anifestResourceStream(s))

Jun 27 '08 #4

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

Similar topics

5
by: drum118 | last post by:
Has anyone experience problems with firewall blocking some icons and not others. I am using Zone alarm and have the popup set for medium and it was blocking some of the icons for some strange...
10
by: Curt Emich | last post by:
I'm trying to create a dataset. I start by creating a connection. Then I create and configure a data adapter. Finally, I select "generate dataset" after right-clicking on the data adapter. It...
24
by: Crom | last post by:
Ok. I want to settle this once and for all. After looking at the source for various, rather sizeable (but not all were so big) web sites that use icons that show up in the addressbar beside the...
11
by: Andrew Warren | last post by:
When I build my winforms exe using the IDE I have a perfectly functioning exe. If I try to build the same project using the .Net Framework csc compiler I get a seemingly valid exe produced...
3
by: sto | last post by:
look at this picture http://upload.cs99.net/e.gif i use the function SHGetFileInfo to get file icons. but these icons are not very nice. there are some black things round of the icons. many...
6
by: B-Dog | last post by:
Does anyone know where I can find some professional looking icons that are the standard windows collection for developers? The ones that came on the VS cd are pretty lame. Thanks
17
by: Brett | last post by:
I'd like references on where to find some good (quality) icons to use for form and application icons (for the EXE). Most of the free stuff isn't that great looking and there isn't a good...
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...
4
by: Sanoski | last post by:
This might be a dumb question. I don't know. I'm new to all this. How do you find icons for your programs? All GUI applications have cool icons that represent various things. For instance, to save...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.