State of MdiClient

M

MuZZy

Hi,

I'm developing an MDI application and i am having a problem: how do i
know the state of MdiClient; what i mean is: when i maximize a MDI
child, then close it and then open a new MDI child, it will open
maximized, then if i change it's state to Normal and close, then next
opened MDI child screen will have state Normal.

So i assume that MdiClient keeps state of MDI child windows even if none
of child forms exists at the moment. How do i find that?

Thank you,
MuZZy
 
N

Nicholas Paldino [.NET/C# MVP]

MuZZy,

Why not check the WindowState property of the child form itself?

Hope this helps.
 
M

MuZZy

Nicholas said:
MuZZy,

Why not check the WindowState property of the child form itself?

Hope this helps.

Hi Nicholas,

Thanks for your response.

At the time i need to check the state, there are no child forms - all of
them are closed. My point is that MDIClient somehow preserves a state of
the last MDIchild and i need to find out how and where.

Thank you,
MuZZy
 
M

Mehdi

At the time i need to check the state, there are no child forms - all of
them are closed. My point is that MDIClient somehow preserves a state of
the last MDIchild and i need to find out how and where.

Why don't you hook to the Closing event of every child form you're showing?
Then, in the event handler, store the window's FormWindowState somewhere
and there you go.
 
M

MuZZy

Mehdi said:
Why don't you hook to the Closing event of every child form you're showing?
Then, in the event handler, store the window's FormWindowState somewhere
and there you go.

Well, there should be some natural approach to that and i want to find it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top