set minimum size of Form

mikeyyh
03-04-2003, 09:35 PM
how to set the minimum size of a form, which will disable the drag to decrease the size of the form when the form is in minimum size?

McF
03-04-2003, 09:44 PM
Do you want it to remain minimized?

mikeyyh
03-04-2003, 10:37 PM
Do you want it to remain minimized?
no, i still want it to resize the form...

Flyguy
03-05-2003, 02:00 AM
You have to subclass the form and intercept the resize messages and block them when they are below your minimums.

mikeyyh
03-05-2003, 02:13 AM
i have done this before, but it show's error when i minimize the window

Flyguy
03-05-2003, 02:18 AM
Have you tried this example:
http://www.mvps.org/vbnet/index.html?code/subclass/minmaxinfo.htm

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum