Link to home
Create AccountLog in
Avatar of George
GeorgeFlag for Canada

asked on

Maximized window but not all windows

In a windows application VB.Net 2005
I have a form tha I would like to display Maximimized, no problem there, I adjust the WindowState of the Form to Maximized and done!
The problem is that after opening this form all other forms opened  become maximized as well

How can I prevent that?

TIA
Avatar of ZachSmith
ZachSmith
Flag of United States of America image

Is this a MDI application?
Avatar of George

ASKER

Yes, It is, and the window that I am maximizing opens inside the parent MDI continer.
Unfortunately, the way that container works is that all forms within it are either maximized or not.
Avatar of George

ASKER

But If I open  one form maximized then close it... why the others the became maximized? even the former one is closed...I do not get what is the idea behind that behaviour... nor how to avoid it.

Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of Sancler
Sancler

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
The functionality you're seeing is just the built-in functionality of the MDI forms. I believe they do it that way to keep MDI applications consistant.

Did the code Sancler posted help?
Avatar of George

ASKER

I twiked a little bit the syntax, but the Idea is wat it counts

Thank you