Solved

changing exe icon

Posted on 2003-10-30
6
440 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to debug this code 7 65
Sorting multiple rows and columns, and count duplicates in Excel 2013 4 103
TT Auto Dashboard 13 104
how to know if my Checkbox is True in VB6.0? 9 70
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

739 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