VB.Net buttons don't show images during runtime?


i am setting button's image property to an image from resource folder. the button shows the image in design view, but when i run the application then it doesn't.

I created new form in the same solution and assign image to a button, again it shows the image in design view but not at run time.

However if i create a  new solution then it is working fine.

i don't know what would be the problem. i rebuild the project, deleted the resource folder and then recreate. but no solution.
Who is Participating?
perhaps try these things:

- Select the image, so that you can see the properties in the [Properties] window
- Change the [Build Action] from [Resource] to [Content]
- Change the [Copy to Output Directory] from [Do Not Copy] to [Copy Always]
- Save and Build the solution
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.