Reference to Icon Files
Posted on 2006-11-16
I am trying to use the same icon in all forms of a VB.NET, as well as in installation shortcuts. I can go through one form at a time and assign an incon file to each.
The results are erratic. Sometimes VB insists on copying or moving the icon file to a different directory. For example, if the icon file is stored in the project/bin directory it will automatically move it to the project/ directory. Then if I reasign the forms to the moved file, it later gets deleted or removed again. Then it wont compile because it cant find the icon file.
I tried assigning the icon file as a project resource but the behaviour is still erratic.
Is there a way to assign the icon file to each form within the code?
Also, in general, when I get an complation error message about an invalid reference - cant find file etc.... How do I find out where in my project that invalid reference is located so that I can fix it?