Delphi Program Icons

Posted on 2004-11-17
Last Modified: 2010-04-05
I have seen many similar questions asked on here before, but not the answer i was looking for. Upon compiling my delphi applications, the default program icon to represent my application is set as the delphi 7 icon (as this is what im using). This has lead me to several questions i wanted answered...
Is there a way to edit or somehow change the program icon given to my applications, upon compiling it?
IF the ONLY way to change the program icon is after it has been compiled, and only if the exe is not running at the time of changing the icon, if i were to programatically change the icon and distribute my application, would the new icon be visible to anyone i send the application to....or would they have to manually change the icon on their computer too?
Perhaps theres an option in delphi to somehow set the program icon, before i compile it? (rather like the fact that you can change the icon that appears on the title bar of your application)

Any help is kindly appreciated!
Question by:Greenandroid
    LVL 14

    Accepted Solution

    There is. Click on Project, Options (or Shift + Ctrl + F11).
    Select the applications tab.
    Click on load icon and select the icon you want.
    LVL 5

    Expert Comment

    Expanding on PierreC,

    If you want an icon for different forms then change the form icon property, the icon will be included in the exe so you don't need to carry the icon along with the exe.



    Expert Comment

    I'm not sure what you mean by "default program icon".  Do you mean "the icon that appears in Program Manager/Windows Explorer for the executable file" or "the icon that appears at the top of any dialog boxes shown" or "the icon that appears on the taskbar when your program is running" or "the icon that appears at the top left of the main form"?

    The first three are all set by the Project options as PierreC described.  Also the second and third can be changed programmatically when the program is running using the Application.Icon property (see help).  The final one (as Hypoviax suggested) can be set on the designer by bringing up the properties of the form and changing its icon and also can be set at runtime programmatically by using MainForm.Icon (or whatever you've called the main form).

    Hope this helps.


    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
    Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video discusses moving either the default database or any database to a new volume.

    730 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

    16 Experts available now in Live!

    Get 1:1 Help Now