MDI Parent won't let child maximise

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • creamBoy

    MDI Parent won't let child maximise

    Guys, this is very annoying. I'm almost at completion of this project
    and i'm still stuck. I declare a form object and add it to the MDI
    form,
    ChildForm childFormObj = new ChildForm();
    childFormObj.Md iParent = this;
    childFormObj.Sh ow();
    Then i maximise it, childFormObj.Wi ndowState =
    FormWindowState .Maximized;

    Even in the child form its window state is already maximised. but it
    just won't comply.
    What do i do, Please
  • zacks@construction-imaging.com

    #2
    Re: MDI Parent won't let child maximise

    On Jun 13, 7:44 am, creamBoy <blackdevil_he. ..@yahoo.comwro te:
    Guys, this is very annoying. I'm almost at completion of this project
    and i'm still stuck. I declare a form object and add it to the MDI
    form,
    ChildForm childFormObj = new ChildForm();
    childFormObj.Md iParent = this;
    childFormObj.Sh ow();
    Then i maximise it, childFormObj.Wi ndowState =
    FormWindowState .Maximized;
    >
    Even in the child form its window state is already maximised. but it
    just won't comply.
    What do i do, Please
    I've written two applications that do exactly what you are trying to
    do.

    Not sure what is exactly causing your problem, but I can tell you that
    the only real difference in the way you are trying to do it and the
    way it works for me is that I set the child form's windowstate
    property before I show it.

    Comment

    Working...