Please help me.

3 posts, 1 answers
  1. Tooraj
    Tooraj avatar
    74 posts
    Member since:
    Aug 2010

    Posted 15 Oct 2010 Link to this post

    Hello,
    I have a Main Form which is a MDI Container. When a child form which is maximizable, is maximized by the user and the user tries to show another child form which its MaximizeBox property is False, the latter form also maximizes(because the former one is Maximized). How do I must prevent such an action to occur.
    please help me,
    Thank you, Tooraj Azizi.
  2. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 15 Oct 2010 Link to this post

    Hello Tooraj,

    Please try setting the child forms WindowState to normal, like so:
    childForm.WindowState = FormWindowState.Normal;

    and after that call Show();

    Please let me know if this solved your problem.

    Best Regards,
    Emanuel Varga
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Answer
    Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 15 Oct 2010 Link to this post

    Sorry, after you call Show, but this will cause the other form to revert to normal states, this is a normal behavior for mdi forms, if you want something different i would suggest to just use the Parent property, not the MDIParent.

    Hope this helps,
    Best Regards,
    Emanuel Varga
Back to Top