Quote:
> I have picture box loaded with a 256 colors icon.
> How could I save the icon to a file?
> I have tried the SavePicture(FileName) picture box method, but:
> 1. If the picture box contains a bitmap, then no problem;
> 2. If the picture box contains an icon, the icon is saved in 16 colors
only!
I've heard that SavePicture() will save .ICO's properly from an ImageList as
long as the original was 8-bit however I've never tried this myself. Your
other option is to write the file yourself, the ICO format is pretty simple
and well documented over on Http://www.wotsit.org/
Hope this helps,
Mike
-- EDais --
- Microsoft Visual Basic MVP -
WWW: Http://EDais.earlsoft.co.uk/