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

Re: State of MdiClient by Nicholas

Nicholas
Thu Apr 06 13:36:18 CDT 2006

MuZZy,

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

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com

"MuZZy" <tnr@newsgroups.nospam> wrote in message
news:O1AN4IaWGHA.1196@TK2MSFTNGP03.phx.gbl...
> 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



Re: State of MdiClient by MuZZy

MuZZy
Thu Apr 06 14:31:13 CDT 2006

Nicholas Paldino [.NET/C# MVP] wrote:
> 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

Re: State of MdiClient by Mehdi

Mehdi
Thu Apr 06 15:01:35 CDT 2006

On Thu, 06 Apr 2006 15:31:13 -0400, MuZZy wrote:


> 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.

Re: State of MdiClient by MuZZy

MuZZy
Fri Apr 07 09:52:08 CDT 2006

Mehdi wrote:
> On Thu, 06 Apr 2006 15:31:13 -0400, MuZZy wrote:
>
>
>> 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.

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