This is a migrated thread and some comments may be shown as answers.

Please help me.

2 Answers 31 Views
Form
This is a migrated thread and some comments may be shown as answers.
Tooraj
Top achievements
Rank 1
Tooraj asked on 15 Oct 2010, 04:17 PM
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 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 15 Oct 2010, 04:42 PM
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
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 15 Oct 2010, 04:53 PM
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
Tags
Form
Asked by
Tooraj
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Share this question
or