Trouble with fsMDIForm and fsMDIChild

Posted on 2006-05-18
Last Modified: 2010-04-16
I have 3 forms.

Form1 - fsMDIForm, Border style Sizeable
button on Form1 opens
Form2 - fsMDIChild, Border style Sizeable
and a button on Form2 opens
Form3 - fsMDIChild, Border style bsToolWindow

So what happens is, Form2 maximizes in Form1 nicely, however when I click the button to open Form3 it makes Form2 not maximized anymore (just makes it normal) which is hightly anoying...

Question by:wildzero
    LVL 27

    Accepted Solution

    >Form2 maximizes in Form1 nicely, however when I click the button to open Form3 it makes Form2 not >maximized anymore (just makes it normal) which is hightly anoying...

    of course mdi-childs can only all maximized or all not,

    you should try to use by form 3 the formstyle fsNormal

    meikl ;-)

    LVL 10

    Author Comment

    Excellent =)
    What I have done as well is put a timer on the form and set it to 250 ->;
    that way if one of the other forms come to the front form3 is pushed back to the front - this is because stayontop doesn't work as one would think and form3 can get lost behide form1.

    Thanks again

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
    Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
    This video discusses moving either the default database or any database to a new volume.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now