[Gambas-user] Minimum Size of a Form

Fabien Bodard gambas.fr at ...626...
Fri Dec 11 11:19:38 CET 2009


in gambas 2 the minimum size of a form is set by the size given at the desing...

2009/12/11 Werner <wdahn at ...1000...>:
> 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
>
>
> ------------------------------------------------------------------------------
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list