I'm making a custom control that can be dragged around and it is semi transparent. I need it so that while it is moving (the mousemove event) that if it intersects a control that its parent becomes that control. I tried to have it iterate through all the controls and if control.bounds.intersectswith me.clientrectangle then me.parent = control type thing, but it did not work. Any help would be appreciated thanks.
A:
You know what control is parent... so on the parent.controls.remove(yourcontrole)
on the new parent... parent.controls.add(yourcontrole)
best regards. Einar
Einar Guðsteinsson
2009-08-29 22:41:21