how would i stop the resize. i want to make a limet on how small they can make the form?
Printable View
how would i stop the resize. i want to make a limet on how small they can make the form?
A cheap, but easy way to do it would be to pop some code in the Form_Resize event:
VB Code:
Private Sub Form_Resize() If Me.Width < 2000 Then Me.Width = 2000 End If If Me.Height < 2000 Then Me.Height = 2000 End If End Sub
is there a better way because that is how i was doing it
I've seen examples on www.planet-source-code.com before. Look there.
this is great but when I minimize my form to the tray, then try to bring the form back into focus the code on that site doesn't let me?Quote:
Originally posted by Nucleus
try here:
See here: http://www.mvps.org/vbnet/index.html...minmaxinfo.htm
why? Does the subclassing take over?