Solved

Scaling GUI's with Visual Studio .NET

Posted on 2004-04-12
5
415 Views
Last Modified: 2008-02-26
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
0
Comment
Question by:Timbo87
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 4

Assisted Solution

by:SSSoftware
SSSoftware earned 200 total points
ID: 10809527
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
 
LVL 7

Expert Comment

by:dante469
ID: 10809933
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
 
LVL 15

Author Comment

by:Timbo87
ID: 10810523
To clarify, I'm talking about WinForms.
0
 
LVL 48

Accepted Solution

by:
AlexFM earned 300 total points
ID: 10810585
0
 
LVL 15

Author Comment

by:Timbo87
ID: 10818581
Thanks!
0

Featured Post

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question