?
Solved

Scaling GUI's with Visual Studio .NET

Posted on 2004-04-12
5
Medium Priority
?
418 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 800 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 1200 total points
ID: 10810585
0
 
LVL 15

Author Comment

by:Timbo87
ID: 10818581
Thanks!
0

Featured Post

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

777 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