Results 1 to 4 of 4

Thread: Form resize

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Location
    St. Louis, MO USA
    Posts
    77
    I have a program using MDI forms. When it starts up I would like the program to show the entire form (unless the user has their display settings way low :-). If I set it for 1024 x 768, it looks perfect. But, when viewed at 800 x 600, 1280 x 1024, etc. it looks horrible. Is there a way I can check the screen resolution of the computer it is running on and us a formula (or something) to set the size?

    Thanks for all the help.

    Doug

  2. #2
    Guest
    Why not just set the WindowState to maximized? This will it will cover the whole screen regardless of the size.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Location
    St. Louis, MO USA
    Posts
    77
    That is the way I originally had it, but when someone hits the restore"?" button. It isn't large enough to show the entire screen, depending on resolution. Much of the information input to the program is from other files (ie notes, excel, etc.) With the form set to the right size, most would be able to position both forms to be able to see the information and input it, without having to Alt-Tab between the progs.

    Mostly, I think I would just like to know how to do this.

    Thanks,
    Doug

  4. #4
    Addicted Member KrishnaSantosh's Avatar
    Join Date
    Feb 2001
    Location
    Coimbatore
    Posts
    210
    Why Not Use A Function To Determine The Resolution Without APIs

    Function IsResolution(Width As Integer, Height As Integer) As Boolean
    If (Screen.Width / Screen.TwipsPerPixelX = Width) And (Screen.Height / Screen.TwipsPerPixelY = Height) Then
    IsResolution = True
    Else
    IsResolution = False
    End If
    End Function

    'For More Codes Like Changing Resolutions And
    'Skinning EMail Me

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