well, i can get it to look like this..... but that is about all i can do. If you want it, just download the NewFolder.zip file i attached. Just upload the file into the project and it will work.
Last edited by Gamemaster1494; Apr 30th, 2010 at 10:32 PM.
I have heaps of png files that i want to convert to icons... what software do you recommend... i tried Imagicon 3.4 free download... but the resolution is so poor.
I used C++ to convert it to an icon file that VB could use. The only thing that i cant figure out why it changes the color of the icon i use. Its weird. O_o
As stated in the FAQ I linked to, 48x48 is not supported by VB, and more than 256 colours is (but only 24 bit, not 32 bit).
SI, bit depth is of utmost importance I agree. But VB can actually handle almost any size icon less than 256. It won't error on a 256x256 icon, but it won't display it. Here are a couple to play with if anyone wants to validate.
Edited: I think VB actually treats a 256x256 icon as a 0x0 icon. When loaded into an image control, the image control shrinks to 1x1 (vb doesn't allow 0x0 controls in design time) and is understandable since the internal icon structure has a 256 icon width/height as zero. But those that process icon structures interpret zero to mean 256; just not VB
Last edited by LaVolpe; Feb 10th, 2010 at 09:10 AM.
Insomnia is just a byproduct of, "It can't be done"
Simon, as mentioned by SI, 32bit icons are not supported by VB. All 3 of your icons are 32bit. I gave you a link in post #19 that has sample code that allows you to use APIs to load and set the icon to your form's window (window icon). That will work for XP & above.
Insomnia is just a byproduct of, "It can't be done"
it must be true type and the size is 32 -....16x16..
That is not correct. It does not have to be "true type". VB icons can be 1, 4, 8, 16, 24 bits per pixel and in sizes ranging from 1 to 255.
32 bit icons can be drawn & assigned to windows using APIs on operating systems that support them. 32 bit icons cannot be assigned to a VB picture or icon property via LoadPicture().
Last edited by LaVolpe; Feb 11th, 2010 at 08:27 AM.
Insomnia is just a byproduct of, "It can't be done"