title: How to change the location of a control from a groupbox to form in vb.net?
body: <p>Not able to take out a control from a groupbox at runtime in vb.net.</p>
  
  <p>see the code:</p>
  
  <pre><code> For i as integer = 0 To groupbox1.Controls.Count - 1
          Dim ctrl As Control = groupbox1.Controls(i)
          If ctrl.text = "Test" then
             ctrl.Location = label1.Location
          End if
   Next
  </code></pre>
  
  <p>The control "Test" is a Textbox which is placed inside the groupBox1.
  The control "label1" is a Label which is placed outside of the groupBox1. when we change the location of textbox, Its moved somewhere, not at label1.location.
  is there any other way to do this?</p>