473,414 Members | 1,775 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,414 software developers and data experts.

Min. Max. size form property in MDI environment

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?
..
Nov 20 '05 #1
7 3579
"RH" <an*******@discussions.microsoft.com> schrieb
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.
--
Armin

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

Nov 20 '05 #2
>The properties don't work because the standard behavior
for Mdi child
windows is that they can be maximized, minimized, resized to any size theuser wants. If this is not true, it is not an Mdi child. It wouldn't makesense to limit the minimum size because maximized child windows would getthe smaller than the limit anyways as soon as the parent is made smallerthan 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...
Nov 20 '05 #3
<an*******@discussions.microsoft.com> schrieb
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

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

Nov 20 '05 #4
<an*******@discussions.microsoft.com> schrieb
Waiting for a solution...

http://support.microsoft.com/default.aspx?scid=kb;[LN];327824
--
Armin

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

Nov 20 '05 #5
* "RH" <an*******@discussions.microsoft.com> scripsit:
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?


Quick and Dirty hack for .NET 1.0:

<http://www.mvps.org/dotnet/dotnet/samples/windowsandforms/downloads/MinMaxFormSize.zip>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #6
* "Armin Zingler" <az*******@freenet.de> scripsit:
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 [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #7
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schrieb
* "Armin Zingler" <az*******@freenet.de> scripsit:
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.


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

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

Nov 20 '05 #8

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

Similar topics

1
by: John Tighe | last post by:
Changing the max or min size of a form can be in code, but if I do that then it causes build errors in my application. The build error is: Expression is a value and therefore cannot be the target...
4
by: Stuart Perryman | last post by:
Hi, I have the following code which works just fine in IE6 but not in Firefox. It is an extract of several table rows each with an individual form. It is generated by php. <form...
4
by: Derrick | last post by:
Hello all; I'm trying to simulate a "scrollable context menu". What I want is to have a listbox fill the entire area of a small form (with no border). Using the designer and property grid, I...
5
by: VMI | last post by:
How can I increase the maximum size of a Windows form? I'm trying to make a really big Windows form (about 1000x1000) but the designer doesn't allow me to do that. It only goes up to 1000x780....
4
by: Steve Amey | last post by:
Hi all I have a Form that is inherited from a main form. On the child form I am putting 2 panels directly on the form, not in any other controls. If I build the project, 1 of the panels decides...
2
by: Supra | last post by:
An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll Additional information: Object reference not set to an instance of an object. i don't know how...
4
by: TOM | last post by:
I have an application that does not behave too well when the user changes the Display Properties -> Appearance -> FontSize after clicking Display from the Control Panel to "Large Fonts" ...
4
by: Hamed | last post by:
Hello I have a UserControl sized to 100; 200 When I drop it in my form the initial size is 100;200 (as I prefer). Then I decided to change the size of my UserControl to 200;200 but although I...
2
by: snow | last post by:
Hi All, I have a VB.Net Windows Application working with .NET 2005 on VISTA computer. The size of the splash window changes to smaller size at run time, but it doesn't has this problem on XP...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.