问题
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:
Add Me.Refresh()
after that statement.
This will call the Paint-events (so does hiding and showing your Form.
来源:https://stackoverflow.com/questions/5116556/a-strange-minor-problem-in-moving-a-picture-from-a-box-to-another