Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resizing a FlexGrid 1

Status
Not open for further replies.

qwe1204

Programmer
Aug 30, 2001
21
GB
Hi,

I am trying to get a flexgrid to automatically resize when a form resizes. The grid currently resizes but is substantially smaller then the container form. This is the code I am using to resize the grid on a maximized form.

Me.WindowState = vbMaximized
With fgRecords
.Left = 100
.Top = 100
.Width = Me.Width
.Height = Me.Height
End With

 
Use ScaleHeight and ScaleWidth to determine the size of the container form:


fg.Height = ScaleHeight * 0.9 ' 90%
fg.Width = ScaleWidth * 0.6 ' 60%

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top