B
Bob Johnson
..NET 3.5: I have placed two controls at the top of an Mdi parent form.
The top-most control is a Panel that is docked to the Top.
Immediately below the Panel is a user control that is Anchored to the Top,
Left, and Right.
At runtme I can drag Mdi child forms toward the top of the Mdi parent. The
child forms slide beneath the user control and Panel, hiding the top portion
of the child forms beneath the Panel or user control.
Question: How can I prevent the child controls from being dragged under (or
over) the user control and Panel? I would like for the behavior to be "as if
" the child forms had run into an edge of the parent form when - while being
dragged - they get to/approaches the user control in the Mdi parent.
Thanks!
The top-most control is a Panel that is docked to the Top.
Immediately below the Panel is a user control that is Anchored to the Top,
Left, and Right.
At runtme I can drag Mdi child forms toward the top of the Mdi parent. The
child forms slide beneath the user control and Panel, hiding the top portion
of the child forms beneath the Panel or user control.
Question: How can I prevent the child controls from being dragged under (or
over) the user control and Panel? I would like for the behavior to be "as if
" the child forms had run into an edge of the parent form when - while being
dragged - they get to/approaches the user control in the Mdi parent.
Thanks!