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