CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2000
    Posts
    264

    Position of child forms

    I have a child form that is shown from selecting it from the menu. The problem I am having is that if I close that child form and then select it again from the menu, it places that window down and to the right and not at the same location as the first time I loaded the window. What is causing this to happen and how can I fix it?

    Thanks.


  2. #2
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: Position of child forms

    MDI forms are always trying to help you out. Its because the MDI form is placing them for you. And if you have the child forms' border style set to sizeable, the forms are resized as well. I just manually position the forms during the child form's load event. It's easier to just center the child form and let the user move it. I do however offer the typical Windows menu options to tile and cascade the child forms.

    I'm sure there is way to get around this, but since I haven't had any complaints, I don't worry about.

    John

    John Pirkey
    MCSD
    www.ShallowWaterSystems.com
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

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