A strange minor problem in moving a picture from a box to another

53 Views Asked by At

Hey Guys. I am having this simple line of code:

Image1.Image = vImage.Image

Image1 is a picture box in child window and vImage is a picture box in parent window. When I open the child window for the first time, I see a complete blank picture in Image1 while at the same time vImage is having a picture on it. When I Hide and reopen it again It has the picture on it. What is the problem and how can I fix it in my Code?

Thank you

1

There are 1 best solutions below

5
On

Add Me.Refresh() after that statement. This will call the Paint-events (so does hiding and showing your Form.