Click to See Complete Forum and Search --> : Resizing form


R Peate
March 12th, 2001, 12:29 PM
How can i stop a form being made smaller that a size X, Y, i thought this would be possible by using the resize function however it does not seem to actually override the inbuilt function, so the result is i cannot stop the form being made smaller!!

i would be vary greatfull if somone could point me in the right direction.

vchapran
March 12th, 2001, 12:37 PM
This works:

private Sub Form_Resize()
If Form1.Width < 3500 then Form1.Width = 3500
If Form1.Height < 1000 then Form1.Height = 1000
End Sub




Vlad

CK Dixon
March 12th, 2001, 08:23 PM
Is there an easy way to prevent even the outline (that appears while outlining) from becoming smaller?

CK Dixon
March 12th, 2001, 08:23 PM
Is there an easy way to prevent even the outline (that appears while resizing) from becoming smaller?

Clearcode
March 13th, 2001, 03:11 AM
Something like subclassing the form and intercepting it's WM_SIZE messages?

Yup, that'd work - the example code is at:
http://www.merrioncomputing.com/vb_subclass2.htm

HTH,
Duncan



-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com

SAKYA
March 13th, 2001, 07:12 AM
set the form's borderstyle property to none.