Click here to Skip to main content
15,915,094 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I getting the error while adding image to a Form.

Error:

Argument 'picture' must be a picture that can be used as a icon.

That image is .ico format and size 38*27 .

Please suggest How to add image in the form ,What should be the format and the size of the image?

thanks
Posted
Updated 5-Apr-12 1:52am
v3
Comments
[no name] 5-Apr-12 8:01am    
Clarify what you mean by adding picture? Do you mean an application icon?
bhagirathimfs 5-Apr-12 8:42am    
I am adding a picture.

1 solution

Have a look at: Icons[^] - the size requirements is near the bottom of the page.

Best regards
Espen Harlinn
 
Share this answer
 
Comments
bhagirathimfs 5-Apr-12 10:04am    
Actually i made a picture in paint and saved that in .ico format and trying to add that picture in the icon property.While adding it showing that error.What should i do before add to the icon of the form?
Espen Harlinn 5-Apr-12 13:03pm    
As far as I know Paint doesn't support the ico and cur formats.
Try the free icon editor http://www.free-icon-editor.com/
Personally I usually use Adobe fireworks together with IcoFx http://icofx.ro/
bhagirathimfs 6-Apr-12 1:32am    
Thanks Espen.
VJ Reddy 5-Jun-12 9:44am    
Good answer. 5!
Espen Harlinn 5-Jun-12 9:44am    
Thank you, VJ :-D

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