Resize Child Forms to fit in Parent Form when Resized

I have an MDI app with several child forms.  
When the app first loads it is maximized and when a child form is opened I specify
Dim ft As New frmMembers

        ft.MdiParent = Me
        ft.WindowState = Me.WindowState
        ft.Show()

and the form fits perfectly in the MDI Parent.
But when I bring the parent to normal size, the child forms do not resize and float in the MDI Parent container.
I would like to have all mdi child forms resize to fit in the Parent when the parent is resized.
I thought that I could run through each open child form and set childform.WindowState = Me.WindowState.
Problem, I don't know how to run through each child form to change it's state...
For each childform in Me.childforms ???
If you think this is a good way to handle this, please provide an example, not a link.  My IE crashes when I click on links.
If you think there is a better way, please advice.
Thank you
SheritlwAsked:
Who is Participating?
 
djon2003Connect With a Mentor Commented:
In the Resize event of your MdiParent form you could add this code :
For Each curForm As Form In Me.MdiChildren
    curForm.WindowState = Me.WindowState
Next

Open in new window

0
 
SheritlwAuthor Commented:
Found answer.  For anyone that is having the same problem...
Set your child forms Start Up Position to Manual.  

0
 
SheritlwAuthor Commented:
Exactly what I was looking for.
Thank you
0
All Courses

From novice to tech pro — start learning today.