Save Icon to File with API

Hi all,

I have nearly finished an icon chooser/editor in VB5. Once an icon is edited in my editor it returns the handle (long) to the newly edited icon. I can use drawicon to place the new icon in a picture box and then save it to a disk file with SavePicture. The problem is that the icon gets distorted with the SavePicture method and I can't figure out why. If someone knows how to avoid distortion with SavePicture, then stop reading right here and please reply to [email protected]

I would prefer to use the API to save the newly edited icon directly to a disk file by using its handle and a saving routine without using the picture box. Does anyone have any info on how to save an icon to a file in VB just by using its handle???

Thanks in advance,

Jay Lewis, [email protected]

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!