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= my.computer.Screen.Bounds.Height
Dim Y as Integer = my.computer.screen.bounds.width

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

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 ?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 3 Answers and 11 Comments.
Join the Community
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