473,386 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

State of MdiClient

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
Apr 6 '06 #1
5 1838
MuZZy,

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

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"MuZZy" <tn*@newsgroups.nospam> wrote in message
news:O1**************@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

Apr 6 '06 #2
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
Apr 6 '06 #3
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.
Apr 6 '06 #4
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.
Apr 7 '06 #5
Hi MuZZy,

I do not think there is a build-in way to do this. Mehdi's suggestion
should be a suitable workaround. Do you have any concern regarding using
it?

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Apr 10 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: BillCo | last post by:
Windows API not my strong point... can anyone give me the idiots guide to getting the MDIClient window height (bottom of menu bar to top of status bar) ? Basically I need a form to open up to the...
1
by: John F | last post by:
Is there a way to place controls on the surface of MdiClient and have it always stay in the background when new child forms are loaded into the MDI? When I place controls on the surface of an MDI...
1
by: pigeonrandle | last post by:
Hello. I hope you are all well. I've been trying to get the text from an MDICLIENT window (recognised by SPY++ as 'WindowsForms10.MDICLIENT.app3'). When i try to get the text using...
2
by: Brian Tkatch | last post by:
Not sure if this is the way it's supposed to be, but after a Layout event on an MDI form, the form's new width is set, but the MDIClient's width is not. As an example, start a new Windows...
0
by: gilbert | last post by:
Hello. I am using .Net 2.0, C#. and am trying to put a MdiClient control into a SplitPanel of a SplitContainer. First, I put a SplitContainer called splitContainer1 into the form. In the...
6
by: =?Utf-8?B?bGpsZXZlbmQy?= | last post by:
Is there any way to change or turn off the border of an Windows.Forms.MdiClient control? In my opinion the 3D bevel that the control uses is outdated and looks poor in my app. The best would be a...
4
by: =?Utf-8?B?bGpsZXZlbmQy?= | last post by:
Is there any way to enable double buffering in an MdiClient control? I have a case where I need to hide all of the MdiClient forms and interactively draw a custom background in an MdiClient...
8
by: Phil | last post by:
Is it possible to find the size of the MDIClient area, excluding the space already used by docked controls? I have thought I could perhaps create a new control, set it's Dock property to Fill and...
0
by: my4color | last post by:
Hello every one, My development environment is c#. * Design -I have one MDI parent, it has one MDI child, -There is a toolbar on to the MDI parent. -Then there is Two list view into the MDI...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.