Minimum size for MdiChild Form?

W

What-a-Tool

Have a re-sizable form in an MDIParent form.
Want to limit the forms minimum size. I set the forms minimum size property,
but it doesn't seem to have any affect.
Does anyone no what I can do here?

Thanks in advance
Sean

--

/ Sean the Mc /


"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)
 
W

What-a-Tool

Are you saying that what I am doing with the minimun size property should
work with .Net 1.1?

That is what I have running, and it isn't working
--

/ Sean the Mc /


"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)
 
W

What-a-Tool

It works for the mdiParentForm, but not the mdiChildForms

--

/ Sean the Mc /


"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)
 
H

Herfried K. Wagner [MVP]

* "What-a-Tool said:
Are you saying that what I am doing with the minimun size property should
work with .Net 1.1?

It works on .NET 1.1 on my Windows XP Pro machine and it works for .NET
1.0 on my XP Pro machine when using the code I posted previously.
That is what I have running, and it isn't working

Which version of Windows do you use?
 
W

What-a-Tool

XP proffesional.

Had .Net 1.0.3705 which was installed with VisualStudio Acedemic.

Updated to 1.1

--

/ Sean the Mc /


"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)

What-a-Tool said:
Are you saying that what I am doing with the minimun size property should
work with .Net 1.1?

That is what I have running, and it isn't working
--

/ Sean the Mc /


"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)

Herfried K. Wagner said:
* "What-a-Tool" <[email protected]> scripsit:

Use the 'MinimumSize' property in .NET 1.1, for .NET 1.0 I have written
a "workaround":
<http://www.mvps.org/dotnet/dotnet/samples/windowsandforms/downloads/MinMaxF
 
W

What-a-Tool

The original version is still installed.
Maybe I'm expecting the wrong thing here.

I have a sizable form.
When I am dragging it to a smaller size, I want it to stop at my forms
minimum size. It won't do this now.

I have my program set up now so that the forms re-size event has a procedure
that checks the form size while it is being dragged.
When the width or height gets smaller than my minimum sizes, the form
resizes itself to its minimum size.
This does what it is supposed to, but the dragging action is continued even
after the form is re-sized, causing a flickering action.
Is there a way to cancel this dragging action once the desired size is
reached?

Thanks



/ Sean the Mc /


"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)

What-a-Tool said:
XP proffesional.

Had .Net 1.0.3705 which was installed with VisualStudio Acedemic.

Updated to 1.1

--

/ Sean the Mc /


"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)

What-a-Tool said:
Are you saying that what I am doing with the minimun size property should
work with .Net 1.1?

That is what I have running, and it isn't working
--

/ Sean the Mc /


"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)
<http://www.mvps.org/dotnet/dotnet/samples/windowsandforms/downloads/MinMaxF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top