locked
Make controls on form resize when form resizes RRS feed

  • Question

  • How would i make so when the user resizes the form the controls on the form resizes to what ever(ex: form become full screen textbox is full screen. remember this is an example. I just want it so it can just grow)

    Saturday, November 21, 2009 5:37 AM

Answers

  • May be you are searching the following,

    1. Have look on Textbox.Anchor - Property
    2. Have a look on Textbox.Dock(fill)-Property


    U.PARANTHAMAN
    • Proposed as answer by Cor Ligthert Saturday, November 21, 2009 3:17 PM
    • Marked as answer by Martin Xie - MSFT Wednesday, November 25, 2009 10:27 AM
    Saturday, November 21, 2009 5:45 AM
  • The easiest way to have controls on a form to automatically resize is to use TableLayoutPanel container controls and then use the Dock property on all of the controls.

    This link has some basic information about that:
    http://visualbasic.about.com/od/usingvbnet/a/tloflopnl.htm

    Remember that a cell in a TableLayoutPanel can only fit one control, but that one control could be a Panel control which will fit any number of controls.

    -Hazelrah

    Saturday, November 21, 2009 5:49 AM

All replies

  • May be you are searching the following,

    1. Have look on Textbox.Anchor - Property
    2. Have a look on Textbox.Dock(fill)-Property


    U.PARANTHAMAN
    • Proposed as answer by Cor Ligthert Saturday, November 21, 2009 3:17 PM
    • Marked as answer by Martin Xie - MSFT Wednesday, November 25, 2009 10:27 AM
    Saturday, November 21, 2009 5:45 AM
  • The easiest way to have controls on a form to automatically resize is to use TableLayoutPanel container controls and then use the Dock property on all of the controls.

    This link has some basic information about that:
    http://visualbasic.about.com/od/usingvbnet/a/tloflopnl.htm

    Remember that a cell in a TableLayoutPanel can only fit one control, but that one control could be a Panel control which will fit any number of controls.

    -Hazelrah

    Saturday, November 21, 2009 5:49 AM