making controls sizable on a sizable form

Posted on 2006-05-16
Last Modified: 2006-11-18

I'm sure I'm having a blond moment here but can someone tell/remind me how to set some basic form properties please.

I have a simple windows form which basically falls into 2 sections.  the top part has a few labels & textboxes ( + 2 radio buttons and a combo - not much though say 10 controls all together) then there is a large multiline textbox and a close button at the bottom.  If the form size is increased I would like the new space to be filled by the large textbox.  This is the only control worth sizing.  The other controls shoul djust stay where they are and remain the same size.  I'm sure I've done this loads of times before using the docking property but I am having trouble.  If I use fill (along wioth some panels) it takesd the whole form and wont allow for the other controls.  Using other commands just make it expand vertically OR horizontally.  Can anyone tell me where I'm going wrong?

Question by:gringogordo
    LVL 2

    Accepted Solution

    Hi gringogordo,

    You should set the Anchor property of the large textbox to 'Bottom, Right'
    As a matter of fact, you can use the anchor property for just about any control on your form!
    Just try it out on the large textbox, and you'll see that it's just what you need!



    Author Comment


    embarressed but grateful!
    LVL 2

    Expert Comment


    no need to be embarrassed, every programmer sometimes struggles over the most obvious things, just glad to help you out ;)



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
    1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    737 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

    18 Experts available now in Live!

    Get 1:1 Help Now