// Change the parent of the controls
private void button1_Click(object sender, System.EventArgs e)
{
control.Parent = groupBox1;
control2.Parent = this;
control.Update();
}
'Change the parent of the controls
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
control.Parent = Me
control2.Parent = GroupBox1
control.Update()
End Sub