Groups | Blog | Home
all groups > dotnet general > october 2004 >

dotnet general : restricting the minimum size of the form


Harry_Crow
10/4/2004 11:57:03 PM
I want to restrict the minimum size of the form. I find that there are
properties MaximumSize and MinimumSize. This will help you control the
maximum and minimum size the form, when the form is resized.
but I find using this will make the controls on the form to flicker more.
one can even restrict using WM_SIZING message but the position of the
window is changing slowly while doing so.
does anyone know the logic how the window minimum size is restricted in the
form.

please help me ,
Thank you,
Julien
10/5/2004 7:29:03 AM
Hi,
I just know that there is SizeChanged as an event in the Form class.

Helpful?

[quoted text, click to view]
Harry_Crow
10/6/2004 12:41:04 AM
thank you, I was able to solve the problem.

One can use the WM_GETMINMAXINFO message and restrict the minimum and the
maximum size of the form

[quoted text, click to view]
AddThis Social Bookmark Button