Click here to Skip to main content
15,894,337 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I want to display and icon in my button. So, first of all:
1. I add to my project Resources dir and than Incons subdir.
2. I've copied .ico file to Incons subdir, and than in VS by "Add existing item" to Icons dir add this ico file to the project.
3. Create a button in form and try to add image in properties. The effect was "Invalid properity.. " or sth like that.

Could somebody tell me why ?

Thanks,
Posted

1 solution

For buttons you can directly use jpg format. Give it a try once. No need to convert to .ico!
 
Share this answer
 
Comments
mnd017 11-Jun-12 6:49am    
But I already have many .ico files. I have to convert them to jpg format ?
Chandrashekar SK 11-Jun-12 6:53am    
Use some online converter. Search for "Convert ico to jpg online" in google. You will get it!
mnd017 11-Jun-12 6:55am    
I know how to covert files. But Is there any way to use ico files in VWG project?
Chandrashekar SK 11-Jun-12 7:07am    
Supported formats for a button -->> gif, bmp, jpg, jpeg, wmf, png
mnd017 11-Jun-12 7:45am    
oh. thank you. So ico format is supported only in window titles ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900