Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have made a windows form Application in which i displayed Question and images related to Question but after publishing my question is shown to me but image is not displayed.I saved my image in bin directory within image folder .But after publishthis application image is not displyed to me.how can i solve this?

Please help me.

Thanks in Advance.
Posted
Updated 7-Jul-11 2:08am
v2
Comments
Prerak Patel 7-Jul-11 7:37am    
Did you check that images are there in application path? Share some code how you show the image.

1 solution

Just storing your images in a subdirectory of bin may not include them in the published build.

Images can be added as ressources:
1. Open Project Explorer
2. Right-click on your project and chose "Properties"
A TabControl with tabs on the left side opens.
3. Chose "Ressources"
A Tab opens.
4. In the tab's button row, select "Images".
5. Add images.

The images you select as ressources will get compiled into your assembly. You can use them in your program via
Properties.Ressources.[RessourceName]
 
Share this answer
 
Comments
Tarun.K.S 7-Jul-11 8:38am    
Good answer. 5+

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