What are the required dimensions, properties etc of an icon for me to be able to turn it into a forms icon?
I ask because I have a 32x32 bitmap (609.ico) that when I try to set as the main icon the error 'invalid property value' is returned.
Printable View
What are the required dimensions, properties etc of an icon for me to be able to turn it into a forms icon?
I ask because I have a 32x32 bitmap (609.ico) that when I try to set as the main icon the error 'invalid property value' is returned.
to my knowledge, it needs to be an .ico
It's probably not in Icon format, however, you can use a conversion process to convert it.
Make a Form with a PictureBox, ImageList and a CommandButton
Code:Private Sub Command1_Click()
ImageList1.ListImages.Add 1, "Icon", Picture1.Picture
Set Form1.Icon = ImageList1.ListImages.Item(1).ExtractIcon
End Sub
Thanks megatron,
however - icon format?
I thought that anything with .ico was an icon?
Please enlighten me!
An Icon is a Bitmap, but the format is slightly different. An Icon consists of an Image (bitmap) combined with an ImageMask to form transparent areas on it, whereas a normal bitmap does not.
Can I export the image in a picbox to another picbox as an icon and then save it as such?