Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Avoiding resizing to a minimum
Message
 
 
To
26/09/1997 22:22:09
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00051901
Message ID:
00052466
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.
>>
>>Have you tried the MinHeight/Width, MaxHeight/Width of the form?
>
>Wow, was I missing the boat on that one. Please, don't laugh all at the same time. :)
>
>Thanks a lot.

Michel:

I'm not laughing because I have used those properties as well. I did not find this as "automatic" as I thought it would be. I could still resize the form to less than the MinHeight/MinWidth than what I specified. I had to resort to the code Gérald Santerre suggested in his response.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform