|
-
March 12th, 2001, 01:29 PM
#1
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.
-
March 12th, 2001, 01:37 PM
#2
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
-
March 12th, 2001, 09:23 PM
#3
Re: Resizing form
Is there an easy way to prevent even the outline (that appears while outlining) from becoming smaller?
-
March 12th, 2001, 09:23 PM
#4
Re: Resizing form
Is there an easy way to prevent even the outline (that appears while resizing) from becoming smaller?
-
March 13th, 2001, 04:11 AM
#5
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
-
March 13th, 2001, 08:12 AM
#6
Re: Resizing form
set the form's borderstyle property to none.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|