Auto Adjust Application Size

Is there any way to adjust the size of my VB application so it will accommodate different computer monitor resolutions?
jmoneilthe2Asked:
Who is Participating?
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.