Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 933
  • Last Modified:

Autosizing child form controls such as DataGridView, TabControl and others

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 ?
1 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.
techsuppoprtAuthor Commented:
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now