Solved

changing exe icon

Posted on 2003-10-30
6
431 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
change vba from autofit to 13.5 width? 4 28
Macro which automatically sends attachment to Outlook 14 61
Saving history changes to sub form 4 35
Help me. 3 43
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

932 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

11 Experts available now in Live!

Get 1:1 Help Now