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

偶尔善良 提交于 2019-12-12 06:05:00

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!