Link to home
Start Free TrialLog in
Avatar of zolpo
zolpo

asked on

changing exe icon

Hi,
I want to change the icon of a vb6 exe file,
How can I do that?
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

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
Avatar of zolpo
zolpo

ASKER

Thanks Tim,
But how do I change a form icon?
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.
Zolpo, do you want to change the form icon during run time or design time?
ASKER CERTIFIED SOLUTION
Avatar of neutrinohunter
neutrinohunter
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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".