well i tried what you said and it looked fine to me, the user can drag the form bigger and it stays, drag the form smaller and it also stays, drag it less than the minimum and you get the grey line that shows where you're dragging it to, but let go and it just goes back to the min size, this is the code i came up with:
Private Sub Form_Resize()
Dim MinWidth As Integer
Dim MinHeight As Integer
MinWidth = 5000
MinHeight = 5000
If Form1.Width < MinWidth Then
Form1.Width = MinWidth
End If
If Form1.Height < MinHeight Then
Form1.Height = MinHeight
End If
End Sub
which looked great to me, user can make the form as big as they want, but no smaller that 5000 by 5000 (of course you change those to what you want, and can declare them outside of the form resize event)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.