472,100 Members | 2,200 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,100 software developers and data experts.

How can I put the image as icon in form?

Ajay Bhalala
119 64KB
I have created 1 form. and I want to put image as a icon of that form into the form in vb.net How can I do this?

I have an image with ".png" extension which I want to put, and I have used the "ICON" property of the form to put my image into the form, but in this property, we can use only the files which have the ".ico" extension.
I changed the extension of the file, but there is still error occured like this "Argument 'picture' must be a picture that can be used as a Icon."

What can be done in this problem? It's urgent please help. It's deadline is tomorrow morning, please help.
Nov 16 '14 #1

✓ answered by twinnyfo

Save the file as a bitmap, then rename the extension to .ico.

3 2012
twinnyfo
3,653 Expert Mod 2GB
Save the file as a bitmap, then rename the extension to .ico.
Nov 19 '14 #2
Ajay Bhalala
119 64KB
Sorry for the late relpy. It's really works.and thank you so much for the help.
Nov 20 '14 #3
twinnyfo
3,653 Expert Mod 2GB
Glad I could be of assistance!
Nov 24 '14 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Steve Teeples | last post: by
3 posts views Thread by David | last post: by
reply views Thread by Terry Olsen | last post: by
6 posts views Thread by comp.lang.php | last post: by
1 post views Thread by mensuur | last post: by
reply views Thread by gopal | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.