Autosizing child form controls such as DataGridView, TabControl and others

Posted on 2008-11-05
Last Modified: 2013-12-17
Hi Experts.

I need some help here please.

I have an MDI parent form with various children forms.
Children forms have TabControls and DataGridVIews.

For the life of me I can not figure out the way to Autosize controls as the Form gets maximized.

I want my controls to be dynamic to be automatically adjusted to the size of the Form as it gets resized or maximized.

Is there a way to do it ?
Question by:techsuppoprt
    LVL 3

    Accepted Solution

    Set the Anchor property to Left, Top, Right, & Bottom.  That way whenever the form is resized from any side, the child control will be stretched with it.
    LVL 1

    Author Comment

    Awesome, thank you.
    I knew it was something simple as just adjusting the property... just couldn't figure out which one.

    Thanks again.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    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 …
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Here's a very brief overview of the methods PRTG Network Monitor ( 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…

    731 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