[Gambas-user] Minimum Size of a Form

Werner wdahn at ...1000...
Fri Dec 11 07:25:44 CET 2009


How can I ensure a resizable form does not get smaller than a certain
minimum?
That won't work:

Public Sub Form_Resize()
  If Me.Width < 200 Then
    Me.Width = 200
   ' Stop Event
  Endif
  If Me.Height < 180 Then
    Me.Height = 180
  '  Stop Event
  Endif
End

...no matter if I use Stop Event or not.

Regards

Werner





More information about the User mailing list