Ok we have a sophisticated app, and it works fine, lot of code, so we know how to develop but....
Since the start, the issue of icons and toolbar button images has been a drag, we have muddled thorugh with an "It'll do for now" attitude and this has been OK, I mean functionally were fine.
I am now completely confused, by the Forms Designer, by icons/bitmaps, transparency, alpha-channels etc.
All I ever wanted to do was use a library of various Windows icon files for
1. TreeView (small)
2. ListView (large/small icons)
3. Toolbar buttons (small)
It started off with the assumption that I could use a .ico file (that contained a 16x16 image at least) as the source for a toolbar button image, but this is immensely confusing now, it seems that one MUST only use .bmp files for toolbar buttons, but I am not sure. Why cant I simply use .ico file in my project and have VS 2005 "understand" these?
(Is there not some way of creating two app-wide image lists in the designer, and then have EVERYTHING refer to these?)
There is also the issue of resources, these have become a mess (we have a project resource file full of mixed up ico and bm files and several form level resources).
Adding to the confusion, is the fact that the various window controls (tree, image list, toolbars etc) refer to Image or Icon objects and these are created (automatically???) when we add .ico files etc to the project.
I have now completely lost all understanding, because I opened a .ico file (that has several folder images, various sizes and various color resolutions) exported the 16x16 32-bit color image to a .bmp file.
I then added that as a resource and then set a toolbar button to be this image - it has a dark surround, clearly something to do with transparency or alpha channel etc.
Even worse, if I attempt to specify a .ico file as image source for a toolbar button, it gets crazy and IDE designer can even fail.
So is there a book or detailed article that explains how one can (in VS 2005 for XP/Vista)
1. Setup resources for the above usage
2. Create the needed .bmp from .ico
3. Avoid the hassle of fiddling with background/transparency etc
4. Help us set up a simple working policy for managing this with less effort.
?
I'd love to remove all icons/images from the project and do all this part again, neatly and simply.
It's a mess and my attempts to simplify and tidy up fail becaue the whole issue is poorl explained in ALL the .NET books I have (even all the WinForms books just gloss over this).
Any guidance, pointers or books that REALLY delve deeply into this apsect of .NET development will be greatly appreciated.
Thx
H