Can anyone help me ? This is one of the problems with VB i have never found a solution for and that is to keeps coming up as a issue.

For Astecic reasons my boss wants to keep all forms opened from the main application window to stay within the that forms boundries. ie it cant be dragged outside Main forms Borders

Their are 2 ways i have been able to do this as the MDI form and Child Forms of VB or by Using the SetParent Function of the Windows API.

The Problem that im encountering is the following I am required for my Parent Form to wait until the other form is done processing before its code continues.

I know the easiest way to do this is make a form vbModal when i Show it but this will not work on MDI forms or forms where i have used the setparent api funtion. And I know the other option is to create a message loop for each child form and wait for my child form to send back a message but I find this cumbersome and hard to follow when trying to read the code after as you have to jump back and forth from form to form when trying to follow the code later.

Any Ideas Would BE Much Appreciated

Jerry
Thanks
Jerry