Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Avoiding resizing to a minimum
Message
 
To
26/09/1997 22:05:20
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00051901
Message ID:
00051905
Views:
27
>In one of my forms, I let the user resize. However, I have some minimums. What is the best way to refuse a resize? I tried putting some code like RETURN .F. and NODEFAULT in the form Resize() event but that does not avoid it.

VFP 5 have MinHeight, MinWidth properties for forms.

Also, you can put this on the Resize event:

IF This.Width < 300
This.Width = 300
ENDIF

IF This.Height < 200
This.Height = 200
ENDIF


:)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Reply
Map
View

Click here to load this message in the networking platform