Solved

changing exe icon

Posted on 2003-10-30
6
430 Views
Last Modified: 2011-09-20
Hi,
I want to change the icon of a vb6 exe file,
How can I do that?
0
Comment
Question by:zolpo
6 Comments
 
LVL 43

Expert Comment

by:TimCottee
ID: 9650720
Hi zolpo,

When you compile the executable, you can select in the properties dialog which form to use to provide the icon for the application. So you need a form in your project (whether you use it or ever even display it is up to you) that has the icon you want. In the project's properties dialog, on the Make tab select this form in the ICON combo box. Then compile the application and it will have this icon selected.

Tim Cottee MCSD, MCDBA, CPIM
Brainbench MVP for Visual Basic
http://www.brainbench.com
0
 
LVL 1

Author Comment

by:zolpo
ID: 9650766
Thanks Tim,
But how do I change a form icon?
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 9650821
If you have an icon in the form of a .ico or even .bmp then you can set this by clicking the ... elipsis button in the .Icon property of the form when in the IDE. This allows you to pick a file containing the icon that will be used as the form's icon. You can of course do this at runtime as well but this will not be stored with your compiled executable. If you pick it at design time it is stored in the executable and will be displayed in windows explorer as with any other application.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 1

Expert Comment

by:MatrixFreak
ID: 9652389
Zolpo, do you want to change the form icon during run time or design time?
0
 

Accepted Solution

by:
neutrinohunter earned 125 total points
ID: 9656800
Just make or get an .ico file ( you can convert jpegs and gifs) then click on the form

and bring up the properties window, look for the setting icon then browse til you get the ico you want.
0
 

Expert Comment

by:EmcoMaster
ID: 9662313
Microangelo is a very nice icon creation program; the shareware version is fully functional, and the price is pretty good.  You can convert nearly any picture into an icon, or make your own.

Assign an icon to each form in your application in the form's property list, then choose the icon you want when you "make xxx.exe".
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now