Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resize form
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00107510
Message ID:
00107514
Views:
30
If I understand your question correctly, you can use the form's Resize event to change the size of a grid on the form. For instance, put this in the form's resize event:
THIS.Lockscreen=.T.
THIS.grdMyGrid.Width=THIS.Width-14
THIS.grdMyGrid.Column2.Width=THIS.grdMyGrid.Width-85
THIS.Lockscreen=.F.
This changes the grid to be 14 pixels narrower than the current width of the form. It also adjusts the width of one column relative to the width of the grid. You could adjust all of the columns, but frequently there's really only one or two that need to stretch when the form is resized.

>Special thanks to Jess Banaga .. the problem solve already
>
>BTW can you change the border's size of the form including the Grid control, BorderStyle=3 - sizeable setted. ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform