[help] with Mdi
Okay, Form 1 is the parent
form2 is the child
i want to be able to drag form2 upto the top of form1 and it maximizes in form1.
like windows 7 does with programs.
how would i do this?
Handle the child form's ResizeEnd event (this event fires when you finish moving it) and get it's position in relation to the parent container and do a Form2.WindowState = FormWindowState.Maximized.
If you want this to happen while the user is still dragging opposed to at the end of the dragging, handle the child form's "move" event.