Click to See Complete Forum and Search --> : Fix the location of MDI Child Form


January 12th, 2000, 10:21 AM
Hi
I'm using MDI layout, everytime I close a child form, and reopen it, the
location of the child form will be slightly moved to right-down from the original location unless I click the Arrange->Cascade, How can I fix the location of the child form, but not thru setting this code
me.top=0
me.left=0
or
me.arrange vbcascade

nspears
January 12th, 2000, 10:30 PM
Why not set the top and left properties in design time?

Norman Spears

slbarret
September 16th, 2005, 10:01 AM
I have a similar problem with child windows (wanting all of them to show at 0,0). The first thing I did was to set their top and left to 0 at design time. No change. I tried manually positioning them in the layout view (I think that's what it's called). No change. Next, as I saw in another post here (sorry, I cannot seem to find it) is to set the top and left of the child to 0 in each of the childs load or activate events (but that won't be until I get home in a few hours).

UPDATE: yup, set the top and left of the child in its load event