471,313 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,313 software developers and data experts.

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.MdiParent = this;
childFormObj.Show();
Then i maximise it, childFormObj.WindowState =
FormWindowState.Maximized;

Even in the child form its window state is already maximised. but it
just won't comply.
What do i do, Please
Jun 27 '08 #1
1 1177
On Jun 13, 7:44*am, creamBoy <blackdevil_he...@yahoo.comwrote:
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.MdiParent = this;
childFormObj.Show();
Then i maximise it, childFormObj.WindowState =
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.
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

16 posts views Thread by Suzanne Vogel | last post: by
2 posts views Thread by gnutuxy | last post: by
5 posts views Thread by midnight_use_only | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.