Click to See Complete Forum and Search --> : How can I make my own icon for VB application?


kevin shen
April 2nd, 2001, 05:38 PM
Can somebody tell me where to change the VB application and system menu icon? Thank you!

Best Regards,

Kevin Shen

Nanderson
April 2nd, 2001, 05:48 PM
Create a 16x16 or 32x32 BMP image [you can use MS PaintBrush for this]. And then save as a .ICO file. The trick is, the upper lefthand pixel will be the transparent color. So tansparent area just needs to be the same color as that pixel.

I've done this several times and never really had much problem..

Other than that I'd suggest getting a commercial product like Microangelo [there is an evaluation version], specifically designed for creating/editing icon files.

Nathan

http://jsprod.odigo.com/share/servlets/OnLineR?userId=2986792&pId=odigo&design=3&tool=signature

John G Duffy
April 2nd, 2001, 06:41 PM
If you are talking about changing the Icon in the upper left corner of your Form, your form has a Icon Property. Click it and select the Icon of your choice.

John G

shree
April 2nd, 2001, 08:43 PM
And to set an icon for your project (This will appear as the icon of your .EXE file), go to Project | Properties and in the Make tab, choose the form whose icon you want to be the icon of the application.

CCDriver
April 3rd, 2001, 07:06 AM
Yes, i agree. Microangelo is what i use, very good.
It's a pity VB dosen't have it's own resource editor, hopefully MicroSoft will do something about this in the next version.

It can cost a bit to licence it to get the full working version if your outside the country where it was made, once you add all the fees and postage, ect.

kevin shen
April 3rd, 2001, 02:01 PM
I use MSPaint to creat an icon save as bmp file. The save as type, I choose "All file" or "16, 256 color bitmap". File name is "logo.ico".
I want to change the icon at Form icon property. But it always show "invalid Property Value". I don't know why.

Best Regards,

Kevin Shen

John G Duffy
April 3rd, 2001, 06:29 PM
An Icon (.ico) file is different then a Bitmap (.bmp) file. You can change the file extension or save a bitmap with .ico file extension but this does not make it a Icon file which is why VB says Invalid picture when you try to load it as the Forms Icon. You should be able to load MSPaints output into the Picture property of the Form but I am sure this is not what you want.
You need to find a program that will convert your .bmp file into a .ico file
Look on Http://www.Planet-Source.Code.com/vb for a BMP2ICO file converter program.

John G

kevin shen
April 6th, 2001, 12:24 PM
I can not use .bmp as an icon, the VB does not accept it. Do you have other method? Thanks!

Best Regards,

Kevin Shen

alan Schoeff
April 11th, 2001, 10:32 PM
make a bitmap with paint
put a picturebox on a vb form
extract the bitmap with this api
Declare Function ExtractIcon Lib "shell32.dll" Alias "ExtractIconA" (byval hInst as Long, byval lpszExeFileName as string, byval nIconIndex as Long) as Long

then simply save the file to your Hd.