Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear friends,
i am using a picturebox to display image, first time it will work fine but after some event my application gone in another mode( i don't no why|which) and then it will not display image,
Again restart application it work fine
Can you tell me how can i resolve this problem?
Posted
Updated 17-Oct-12 21:22pm
v2
Comments
Sander Rossel 18-Oct-12 2:04am    
Quite possibly some code in your event... If you could post the event here too someone might have an idea. Use the improve question button in the right lower corner of your question.

1 solution

VB
This is a possibility, based on the limited info:

If the image is shown in the picturebox before you run the form in debug mode, then it apparently has been assigned at design time to the PictureBox1.Image property. When you run the program and assign My.Resources.tropical_island3 to the Picture Box image, it clears the image because My.Resources on your home computer does not have resource like the one at class, or maybe rosource name is spelled incorrectly.
 
Share this answer
 
Comments

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

  Print Answers RSS


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