• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 473
  • Last Modified:

Auto Adjust Application Size

Is there any way to adjust the size of my VB application so it will accommodate different computer monitor resolutions?
0
jmoneilthe2
Asked:
jmoneilthe2
  • 3
1 Solution
 
Erick37Commented:
Here is an MS article with some tips and example code:

How To Create a Resolution-Independent Form
http://support.microsoft.com/default.aspx?scid=kb;en-us;182070
0
 
Mikal613Commented:
If you want to show your forms at full size you really need no more than to set the WindowState to Maximized (which will be maximized no matter what the resolution is).  Use this code:

  Me.WindowState = vbMaximized

If you insist on using the Height/Width properties, use this code:

  Me.Height = Screen.Height
  Me.Width = Screen.Width

Either example should be placed in the form's Load event.
0
 
AjithJoseCommented:
These URLs will certainly help you:

VB Helper: HowTo: Resize controls to fit when a form resizes
http://www.vb-helper.com/howto_stretch_controls.html

Advanced resize controls options: http://www.a1vbcode.com/snippet.asp?ID=2357
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now