Scaling GUI's with Visual Studio .NET

I've been doing more stuff with GUI's in .NET lately and one thing that's been bugging me is scaling GUI's. When you maximize the window, the controls don't reposition themselves. I know you can provide relative positions with code, but I was wondering if there's a way in Visual Studio .NET to make a scaling form? I've been disabling the maximize button and disabling resize, which is a hack way to prevent it, but I want to allow this functionality and keep the form looking how it should.

Thanks,
Tim
LVL 15
Timbo87Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
SSSoftwareConnect With a Mentor Commented:
YOu can use the
DOCK attribute and the
Anchor attribute

They are available on all visible controls.

You have to play with them to figure out what is best for you.

Good luck.
Ed
0
 
dante469Commented:
I use relative position and place everything inside tables that specify percentages...  Use a fixed width item...  Usually a pic or header/footer table to prevent the window from shrinking too much...

When the user expands it gets larger and everything spaces but prevents from shrinking too small.

Sorry no super easy solution, but with practive works well.

Have Fun,
Dante
0
 
Timbo87Author Commented:
To clarify, I'm talking about WinForms.
0
 
Timbo87Author Commented:
Thanks!
0
All Courses

From novice to tech pro — start learning today.