AutoSize forms to Screen size and/or res


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: AutoSize forms to Screen size and/or res

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    AutoSize forms to Screen size and/or res

    [Originally posted by Dale Yarbrough Jr]

    How could I manage to get a form to automatically size itself to different screen resolutions or monitor size... Windows accomplishes this by adding scrollbars automatically... HOW? I can't find documentation...
    Thank you.

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:AutoSize forms to Screen size and/or res

    [Originally posted by Don Gerdts]

    Try this:

    Private Sub Form_Load()
    Height = Screen.Height
    Width = Screen.Width
    end sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center