Solved

Scaling GUI's with Visual Studio .NET

Posted on 2004-04-12
5
413 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
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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

733 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