How to resize the entire window contents.

Posted on 2008-11-04
Last Modified: 2013-11-27
I have a C# program, using .NET... I have a bunch of controls in a tab container inside a main form... I want the user to be able to resize the mainForm window and have the other objects resize proportionally.

Can that be done?  If so, how?
Question by:rmmarsh
    LVL 85

    Accepted Solution

    Yes...controls automatically adjust themselves to their containers based on their Anchor() and Dock() properties.


    Author Comment

    How does one handle fonts?
    LVL 85

    Assisted Solution

    by:Mike Tomlinson
    I don't think there is anything automatic for adjusting would have to manually adjust sizes.
    (I could be wrong though)

    Author Comment

    OK... I have made some changes, and when I try to resize the window by dragging the bottom, it moves (I can see the dotted line outline) and then snaps back!  Why?

    Author Comment

    Moderator:  this issue is still alive, but has been abandoned by Idle_Mind... please close and refund points.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
    zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…

    761 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

    15 Experts available now in Live!

    Get 1:1 Help Now