I have an application where I want to use varying icons for the same form.
Let's say when the user selects a certain menu option, the system determines the time of day and swaps .ICO files accordingly before opening the requested form. The form already has the 'Icon' Property set to a name that does not change. So I must rename the old .ICO file out and put a new file (under the same original name) in its place.
The problem is that this does NOT work. I experience NO change in icons.
When I build the .EXE I made sure to exclude the .ICO file from the build thinking that whenever the form ran it would get whatever matching ICO file was available.
Why isn't this working?
Is the icon somehow built into the .EXE associated with each form so that I can't change it at run time?
HELP!