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

I have a problem when uplaoding a picture on a form. The form includes some call back functions like drop menus. If I place the picture on the " browse" area then go to any drop down menu on the form the picture dispears. Do you have a solution ?

Thank you.

Maha Awad

[edit]Spurious code block removed - OriginalGriff[/edit]
Posted
Updated 20-Aug-11 23:04pm
v2

1 solution

It depends on how you are drawing the picture: If you set it as the Image property of a PictureBox, then it should be retained. However, if you are using the Graphics.DrawImage method, then you need to move that into the Paint event for the form - otherwise it will disappear whenever the form is invalidated for any reason.
 
Share this answer
 

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