日期:2014-05-19  浏览次数:20504 次

第一个FlowLayoutPanel控件中的button1怎样转入第二个FlowLayoutPanel中啊?(点击外面的button2)
要点击外面的button2     button1自动加到FlowLayoutPanel2中


------解决方案--------------------
我顶 顶顶顶顶
------解决方案--------------------
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim btn As Button = FlowLayoutPanel1.Controls( "Button1 ")
If btn Is Nothing Then Exit Sub
btn.Parent = FlowLayoutPanel2
End Sub