Results 1 to 3 of 3

Thread: Pretty *****ly Pixel Problem

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Columbia, SC USA
    Posts
    374

    Red face

    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

  2. #2
    Member
    Join Date
    Jul 1999
    Posts
    42
    ' 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

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Columbia, SC USA
    Posts
    374
    thanks, I'll give that a try

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width