-
Resizing form
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.
-
Re: Resizing form
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
-
Re: Resizing form
Is there an easy way to prevent even the outline (that appears while outlining) from becoming smaller?
-
Re: Resizing form
Is there an easy way to prevent even the outline (that appears while resizing) from becoming smaller?
-
Re: Resizing form
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
-
Re: Resizing form
set the form's borderstyle property to none.