【发布时间】:2012-09-17 16:26:33
【问题描述】:
我在System.Windows.Forms.Form 中有一个System.Windows.Forms.Panel。在面板中,我用myGraphic.DrawLine(myPen, myMouseDownPoint, myMouseUpPoint) 画线。到目前为止它运行良好。
现在我想在另一个System.Windows.Forms.Panel 中显示面板的内容。
但这不起作用。
我尝试的是:
this.panel1 = MyForm1.panel1;
this.panel1.Refresh();
我该如何解决这个问题?
【问题讨论】:
-
抱歉,忘了说,第二个面板在第二个 System.Windows.Forms.Form 中。我试过 this.panel1 = MyForm1.panel1; this.panel1.Refresh();
-
请使用您的问题下方的edit link 添加该信息。