Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resize a MDIChild when the parent form size is changed. 1

Status
Not open for further replies.

Ati2ude

Programmer
Dec 11, 2001
79
US
I would like to resize any child form that is open when the parent form is resized. Any ideas on how to accomplish this? Thanks in advance.

 
Use a for each form loop to find which child forms are active, and then set these forms to the size you want.

in the resize sub:

dim frm as form

For Each frm in forms
if frm.name <> "MDIForm1" then
if frm.MDIchild = true then
frm.width = .....
frm.height = .....
end if
end if
next

This routine will loop through all open forms, and if they are not your MDI form, but are children to the form, they will resize. Make sure you change MDIForm1 to the name of your MDI parent form.

BB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top