-
the code
Code:
Me.WindowState = vbMaximized
DataGrid1.Width = Me.Width - 100
will set the data grid to the size that I need only if the user's computer is set to 640 by 480 pixels. Can someone give some suggestions on how to 1) determine what are the pixel settings, and 2) adjust control sizes when the window is maximized so that they appear the same no matter what are the pixel settings?
Thanks
Andrew
-
' Size grid control to fit form
Private Sub Form_Resize()
dbGrid1.Width = Me.ScaleWidth - 2 * dbGrid1.Left
dbGrid1.Height = Me.ScaleHeight - 2 * dbGrid1.top
End Sub
-
thanks, I'll give that a try