CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Fix the location of MDI Child Form

    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


  2. #2
    Join Date
    Jan 2000
    Posts
    2

    Re: Fix the location of MDI Child Form

    Why not set the top and left properties in design time?

    Norman Spears

  3. #3
    Join Date
    Sep 2005
    Posts
    4

    Re: Fix the location of MDI Child Form

    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
    Last edited by slbarret; September 17th, 2005 at 04:50 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured