Visual Studio 2008 form ICON cannot be accessed as a common resource
Posted on 2014-04-28
I am working on a corporate image update for our applications. The old ico file was a very old one and it was only 1KB in size (was only one size at 32x32). I was given a much more modern ico file that supports 6 different resolutions. This new ico file is 362KB in size. After incorporating this new ico file into my project, (changing it in Project Properties->Application->Icon (which seems to be a pointless exercise)) and also changing it in every form I have (about 15), my compiled exe size grew from about 700K to 6M, almost a 10 fold increase in size.
It seems that the way Visual Studio 2008 references an ico file is to incorporate a copy of the whole image right into each and every form in the project instead of referencing one common ico for the whole project.
Is there a work around for this to simply use one single ico reference for all forms.