Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
change application icon
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Debian removes FPC/Lazaru...
by
dbannon
[
Today
at 04:10:48 am]
Published sets in FPC are...
by
cdbc
[
Today
at 04:06:43 am]
lazarus project
by
crownfield
[
Today
at 03:34:00 am]
Frustrating Error When us...
by
jamie
[
Today
at 03:05:27 am]
StrMath.pas a String Numb...
by
srvaldez
[
Today
at 03:03:50 am]
'Rounding' to (say) 5 DP
by
LV
[February 17, 2026, 11:51:29 pm]
Is it possible to create ...
by
LeP
[February 17, 2026, 11:20:42 pm]
Status of FPC 3.4.0 or FP...
by
PascalDragon
[February 17, 2026, 09:25:01 pm]
MVP made easier.
by
cdbc
[February 17, 2026, 09:16:07 pm]
A diary project with SQLi...
by
cdbc
[February 17, 2026, 09:03:25 pm]
[ANN] fpGUI Toolkit v2.0....
by
PascalDragon
[February 17, 2026, 08:49:17 pm]
Form has no Taskbar entry...
by
n7800
[February 17, 2026, 07:48:59 pm]
DCPcrypt v2.0.6 — Cryptog...
by
Ten_Mile_Hike
[February 17, 2026, 07:40:22 pm]
[SOLVED] Lazarus recompil...
by
creaothceann
[February 17, 2026, 07:37:12 pm]
4.4 messed with the proje...
by
QEnnay
[February 17, 2026, 07:26:00 pm]
Anyone else getting a tro...
by
dseligo
[February 17, 2026, 07:24:37 pm]
Duplicated icon in the Wi...
by
n7800
[February 17, 2026, 06:11:54 pm]
[AGGPas] Difference betwe...
by
cdbc
[February 17, 2026, 05:02:28 pm]
[SOLVED] Statically linki...
by
marcov
[February 17, 2026, 04:56:09 pm]
pas2js WebAssembly SQLite...
by
PierceNg
[February 17, 2026, 03:32:46 pm]
My AGGPas examples
by
Roland57
[February 17, 2026, 02:10:03 pm]
Datatype of Fields in sql...
by
Dzandaa
[February 17, 2026, 01:46:59 pm]
TurboBird IBX
by
valdir.marcos
[February 17, 2026, 10:38:16 am]
Delphi Magazine issues 1-...
by
valdir.marcos
[February 17, 2026, 10:37:33 am]
We are starting to use La...
by
dbannon
[February 17, 2026, 06:25:04 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: change application icon (Read 1046 times)
Paolo
Hero Member
Posts: 675
change application icon
«
on:
December 21, 2025, 07:11:53 pm »
Hello,
I have successfully converted from Deplhi some app of mine, however the icon is still the delphi one, whatever I try in project option.
any suggestion ?
win-10/laz 4.2.
Thanks
Logged
Paolo
Hero Member
Posts: 675
Re: change application icon
«
Reply #1 on:
December 21, 2025, 07:17:36 pm »
to be more precise : on windows view with small icon i see picture 1 with greater icon greater I see picture 2
Logged
Thaddy
Hero Member
Posts: 18729
To Europe: simply sell USA bonds: dollar collapses
Re: change application icon
«
Reply #2 on:
December 21, 2025, 07:40:36 pm »
delete the res and do a build.
Logged
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...
Paolo
Hero Member
Posts: 675
Re: change application icon
«
Reply #3 on:
December 21, 2025, 07:43:37 pm »
already tried.. nothing.
Logged
Paolo
Hero Member
Posts: 675
Re: change application icon
«
Reply #4 on:
December 21, 2025, 07:47:56 pm »
now the problem is disappeared, maybe a refresh problem of windows ???? (even if for sure I deleted the folder and pressed F5 several times).
Logged
LeP
Full Member
Posts: 150
Re: change application icon
«
Reply #5 on:
December 21, 2025, 09:10:29 pm »
The problem is Windows, which caches the icon. For me (and not only in Delphi) the icon sometimes stays the same for hours (and if I move the .exe to a virtual machine, the icon is correct).
Now it doesn't bother me anymore; I know the icon is correct.
Logged
Paolo
Hero Member
Posts: 675
Re: change application icon
«
Reply #6 on:
December 21, 2025, 09:22:34 pm »
Ok, it seems the case.
Logged
creaothceann
Sr. Member
Posts: 268
Re: change application icon
«
Reply #7 on:
December 21, 2025, 09:52:35 pm »
Other file managers may also do their own icon caching, for example Total Commander.
Logged
anse
Jr. Member
Posts: 52
Bugmonkey
Re: change application icon
«
Reply #8 on:
December 22, 2025, 12:35:20 pm »
Windows caches icons in your user profile. You can delete these
%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_*.db
You will need to reboot afterwards. Even then this is not a 100% solution, there may be file type associations or your theme/icon pack which override the icons.
What a mess.
Logged
Thaddy
Hero Member
Posts: 18729
To Europe: simply sell USA bonds: dollar collapses
Re: change application icon
«
Reply #9 on:
December 22, 2025, 02:05:07 pm »
Simpler (Windows only):
Code: Pascal
[Select]
[+]
[-]
program
refreshiconcache
;
uses
windows
,
shellapi
;
procedure
RefreshIcons
;
begin
// Notify shell that file associations have changed
SHChangeNotify
(
SHCNE_ASSOCCHANGED
,
// Event: associations changed
SHCNF_IDLIST
,
// No path needed
nil
,
nil
)
;
end
;
begin
RefreshIcons
;
end
.
Full program
, handy function...
This forces the shell to reload the icons.
Logged
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...
Zoran
Hero Member
Posts: 1980
Re: change application icon
«
Reply #10 on:
December 23, 2025, 01:07:28 am »
Quote from: Thaddy on December 22, 2025, 02:05:07 pm
Full program
, handy function...
This forces the shell to reload the icons.
Nice and useful, thanks!
Logged
Swan, ZX Spectrum emulator
https://github.com/zoran-vucenovic/swan
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
change application icon
TinyPortal
© 2005-2018