Help with MDI Forms and MDI child forms 
Author Message
 Help with MDI Forms and MDI child forms

I have an MDI form that allows the user to load up various other forms.
(i.e. Customer, Inventory, Transactions)  Each form can be loaded multiple
times depending on the users preferences.  for example, if they are entering
a customer and want to pause and go the history of an existing customer they
can load a second instance of the form and proceed.

The problem I am having is keeping all the forms on the MDI Parent without
moving out of bounds.  When each form loads it appears that windows controls
where the forms will be placed and tiled.  It works ok for the first couple
of forms, but then they start to go outside the boundary of the Parent form.

Is there a way that I can control the stacking, tiling, and placement of the
forms?

WB



Wed, 25 May 2005 05:31:32 GMT  
 Help with MDI Forms and MDI child forms

Quote:
> I have an MDI form that allows the user to load up various other
> forms. (i.e. Customer, Inventory, Transactions)  Each form can be
> loaded multiple times depending on the users preferences.  for
> example, if they are entering a customer and want to pause and go the
> history of an existing customer they can load a second instance of
> the form and proceed.

> The problem I am having is keeping all the forms on the MDI Parent
> without moving out of bounds.  When each form loads it appears that
> windows controls where the forms will be placed and tiled.  It works
> ok for the first couple of forms, but then they start to go outside
> the boundary of the Parent form.

MDI child forms CAN'T go outside the parent.  Have you actually set the
MDIChild property on the child forms to True?


Wed, 25 May 2005 08:06:17 GMT  
 Help with MDI Forms and MDI child forms
Yes they are.  The child forms stay within the parent, but they can stack in
such a way that the entire child form isn't visible and as a result the
parent form displays the horizontal and vertical scroll bars to view the
entire child form.

I am trying to prevent the child forms from doing this.


Quote:


> > I have an MDI form that allows the user to load up various other
> > forms. (i.e. Customer, Inventory, Transactions)  Each form can be
> > loaded multiple times depending on the users preferences.  for
> > example, if they are entering a customer and want to pause and go the
> > history of an existing customer they can load a second instance of
> > the form and proceed.

> > The problem I am having is keeping all the forms on the MDI Parent
> > without moving out of bounds.  When each form loads it appears that
> > windows controls where the forms will be placed and tiled.  It works
> > ok for the first couple of forms, but then they start to go outside
> > the boundary of the Parent form.

> MDI child forms CAN'T go outside the parent.  Have you actually set the
> MDIChild property on the child forms to True?



Wed, 25 May 2005 08:09:27 GMT  
 Help with MDI Forms and MDI child forms

Quote:
> Yes they are.  The child forms stay within the parent, but they can
> stack in such a way that the entire child form isn't visible and as a
> result the parent form displays the horizontal and vertical scroll
> bars to view the entire child form.

> I am trying to prevent the child forms from doing this.

Sorry, I thought when you said they went outside the bounds you meant the
entire child was visible.  The MDI Parent form has an Arrange method that
will organize them
me.arrange vbTileHorizontal|vbTileVertical|vbCascade|vbArrangeIcons


Wed, 25 May 2005 08:28:16 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Q: Form activate Fires On Non Child MDI Forms But Only Once On Child Mdi Forms

2. Modifying object in MDI Parent form from MDI Child form

3. Make a reference to a MDI form with a reference of a MDI child form

4. MDI-Child form and positon on MDI-form

5. Developing OLE MDI Child forms displayed on Control MDI Form

6. MDI child forms on top of a picture on a MDI form

7. Modal non MDI forms and Modeless MDI child forms in VB 5.0

8. Allow MDI Child form to overlap Aligned Picture Box in MDI Form

9. Having MDI form with MDI Child form in DLL

10. Accessing Objects on a Mdi Parent form from a Mdi Child form

11. Allow MDI Child form to overlap Aligned Picture Box in MDI Form

12. Allow MDI Child form to overlap Aligned Picture Box in MDI Form

 

 
Powered by phpBB® Forum Software