troubleshooting Question

How to resize a form and its different controls.

Avatar of cmdolcet
cmdolcetFlag for United States of America asked on
Visual Basic.NET
11 Comments3 Solutions126 ViewsLast Modified:
I have a form that has a multitude of controls on it ( Labels,TExtbox,combo box, grids radio button and group boxes). I would like a streamline way on how to easily resize a form based on the users screen size.

I have the following code:

Dim X as Integer=
Dim Y as Integer =

Sub FrmLoad ()
me.size = new size(X,Y)

Open in new window

I also changed the following properties on the form itself.
AutoSize = True
AutoSizeMode = GrowAndShrink

Do I need to to anything with the labels and textboxes and combobox ?
Éric Moreau
Senior .Net Consultant
Join our community to see this answer!
Unlock 3 Answers and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros