Auto Adjust Application Size

Is there any way to adjust the size of my VB application so it will accommodate different computer monitor resolutions?
Who is Participating?
Here is an MS article with some tips and example code:

How To Create a Resolution-Independent Form;en-us;182070
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.
These URLs will certainly help you:

VB Helper: HowTo: Resize controls to fit when a form resizes

Advanced resize controls options:
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.