Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

App to create *.ico files

Status
Not open for further replies.

Micash

Programmer
Dec 11, 2000
54
Hi, does anyone out there know of any utility or application on the market that enables one to convert BMP or GIF files to ICO files? Any direction will be greatly appreciated.
 
Irfan Viewer

Once you opened your file you can save it in a no of formats using File-Save As...ICO is one of those formats.

The best part is that its free. I give this guy the thumbs up for an excellent utility. B-)
 
With code :

With the code below you can save BMP file as ICO File.

Preparations
Add 1 ImageList Control to your form.

Form Code
Private Sub Form_Load()
' Load the picture into the ImageList. replace "d:\myDir\File.bmp"
' with the BMP file name you want to export.
ImageList1.ListImages.Add , , LoadPicture("d:\myDir\File.bmp")
' Save the icon file. replace "d:\myDir2\File2.ico" with the new Icon
' file you want to create.
SavePicture ImageList1.ListImages(1).ExtractIcon, "d:\myDir2\File2.ico"
End Sub
Eric De Decker
vbg.be@vbgroup.nl

Licence And Copy Protection AxtiveX
Source CodeBook for the programmer
 

Awsome Eric!

P.S. Haven't seen you for a while -- welcome back

Tarek

The more I learn, the more I need to learn!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top