Min. Max. size form property in MDI environment

  • Thread starter Thread starter RH
  • Start date Start date
R

RH

I have a MDI child form that I want to assign a minimum
size to, but it doesn't work. If the form is a stand alone
(not MDI) form it does, but as soon as a MDIparent form is
assigned to it, the minimum (or maximum) size property is
ignored.
Is there a simple solution or is it just me?
..
 
RH said:
I have a MDI child form that I want to assign a minimum
size to, but it doesn't work. If the form is a stand alone
(not MDI) form it does, but as soon as a MDIparent form is
assigned to it, the minimum (or maximum) size property is
ignored.
Is there a simple solution or is it just me?
.

The properties don't work because the standard behavior for Mdi child
windows is that they can be maximized, minimized, resized to any size the
user wants. If this is not true, it is not an Mdi child. It wouldn't make
sense to limit the minimum size because maximized child windows would get
the smaller than the limit anyways as soon as the parent is made smaller
than the limit.
 
The properties don't work because the standard behavior
for Mdi child
windows is that they can be maximized, minimized, resized to any size the
user wants. If this is not true, it is not an Mdi child. It wouldn't make
sense to limit the minimum size because maximized child windows would get
the smaller than the limit anyways as soon as the parent is made smaller
than the limit.


--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

I don't really see a point in that, because if the mdi-
parent form is made smaller than the min setting of the
mdi-child form, the mdi-parent form displays scrollbars to
solve the problem. In my opinion it's very usefull to
limit the sizes of the mdi-child forms, because the mdi-
parent form is maximized most of the time anyway.

Waiting for a solution...
 
I don't really see a point in that, because if the mdi-
parent form is made smaller than the min setting of the
mdi-child form, the mdi-parent form displays scrollbars to
solve the problem. In my opinion it's very usefull to
limit the sizes of the mdi-child forms, because the mdi-
parent form is maximized most of the time anyway.

Waiting for a solution...

Maybe you can add scrollbars to the child window? (set autoscroll = true)
 
* "Armin Zingler said:
The properties don't work because the standard behavior for Mdi child
windows is that they can be maximized, minimized, resized to any size the
user wants. If this is not true, it is not an Mdi child. It wouldn't make

AFAIR they work in .NET 1.1, but not in .NET 1.0.
 
Herfried K. Wagner said:
AFAIR they work in .NET 1.1, but not in .NET 1.0.

Depends on what "work" means. I'm using 1.1 but whenever the child is
maximized and I resize the parent to a size smaller than the minimum size of
the child, the child is also smaller. :) So I don't see why the property
makes sense.
 
Back
Top