change the exe application icon on runtime
-
I need to change the icon of the resulting .exe for my application programmatically at runtime. The path to the icon will be read form a file. I know it's possible to change the icon through: Project >> Properties >> Common Properties >> General >> Application Icon. I was reading at msdn to find the answer. It seems possible to change it but I just couldn't understand how. If anyone has done this before any help would be appriciated. I'm using Microsoft Visual Studio .NET 2008
-
I need to change the icon of the resulting .exe for my application programmatically at runtime. The path to the icon will be read form a file. I know it's possible to change the icon through: Project >> Properties >> Common Properties >> General >> Application Icon. I was reading at msdn to find the answer. It seems possible to change it but I just couldn't understand how. If anyone has done this before any help would be appriciated. I'm using Microsoft Visual Studio .NET 2008
Set the Icon property of your form - that alters the runtime icon shown in the control box at the top left, and the taskbar.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
-
Set the Icon property of your form - that alters the runtime icon shown in the control box at the top left, and the taskbar.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
-
-
You have been here four years - that's long enough for you to know that you need to tell us what you want because we can't see your screen, access your HDD, or read your mind. So explain: which icon do you want to change at run time (there are several places your app icon can appear)? Where? When? And probably most important, why?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
-
-
I googled and got the link below .But i cant run and get error. http://stackoverflow.com/questions/4127785/using-updateresource-in-c[^]
-
I googled and got the link below .But i cant run and get error. http://stackoverflow.com/questions/4127785/using-updateresource-in-c[^]
That's nice and all, but you can NOT change the icon of your .EXE while it's running. The file is locked by the system until the .EXE quits. You have to change it from another executable in order for this to work.
A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave Kreskowiak