Solved

Scaling GUI's with Visual Studio .NET

Posted on 2004-04-12
5
407 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
5 Comments
 
LVL 4

Assisted Solution

by:SSSoftware
SSSoftware earned 200 total points
Comment Utility
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
Comment Utility
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
Comment Utility
To clarify, I'm talking about WinForms.
0
 
LVL 48

Accepted Solution

by:
AlexFM earned 300 total points
Comment Utility
0
 
LVL 15

Author Comment

by:Timbo87
Comment Utility
Thanks!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now