PDA

Click to See Complete Forum and Search --> : how to make icon from bitmap


giridharv77
Jan 19th, 2000, 02:22 PM
pl give me some idea with code probable how to make icon with bitmap file...pl help in this regard asap...

Joacim Andersson
Jan 19th, 2000, 03:10 PM
Add the bitmap to a ImageList control. Load the bitmap into a picture box using the ExtractIcon method of the ListImage object. Save the icon.

Picture1 = ImageList1.ListImages(1).ExtractIcon
SavePicture Picture1, "C:\MyIcon.ico"

Good luck!

------------------
Joacim Andersson
joacim@programmer.net
joacim@yellowblazer.com
www.YellowBlazer.com (http://www.YellowBlazer.com)