How to change the location of a control from a groupbox to form in vb.net? -
not able take out control groupbox @ runtime in vb.net.
see code:
integer = 0 groupbox1.controls.count - 1 dim ctrl control = groupbox1.controls(i) if ctrl.text = "test" ctrl.location = label1.location end if next
the control "test" textbox placed inside groupbox1. control "label1" label placed outside of groupbox1. when change location of textbox, moved somewhere, not @ label1.location. there other way this?
try this:
ctrl.parent = form1
and change location:
ctrl.location = label1.location
Comments
Post a Comment