Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resizing
Message
From
08/05/1998 15:49:24
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Resizing
Miscellaneous
Thread ID:
00098183
Message ID:
00098183
Views:
58
I have a form with nothing but a grid on it. I create the grid programatically and then set its width and height properties to the form's dimensions -20. in the resize event of the form, I put the same code:

if type('thisform.grid1') = "o" and not isnull(thisform.grid1)
thisform.grid1.visible = .f.
thisform.grid1.height = thisform.height-20
thisform.grid1.width = thisform.width-20
thisform.grid1.visible = .t.
endif
thisform.refresh

The first time I resized the form it looked like it worked. But now everytime I resize or maximize the form, the grid stays the same. Am I overlooking something here?
Next
Reply
Map
View

Click here to load this message in the networking platform