locked
Resize all control inside tabcontrol RRS feed

  • Question

  • Hi,

    I want to resize all controls form based on resize the form in vb.net 2012.I found code from net.But all controls which are inside the tab,that controls are not resized.I want to resize control inside the tab control based on form size in vb.net 2012.Please provide the solutions.

    Friday, April 25, 2014 1:20 PM

Answers

All replies

  • Which UI technology are you using, WPF, HTML or WinForms?  If I had to guess I'd say WinForms in which case look into the Anchor property of your controls.
    Friday, April 25, 2014 2:37 PM
  • I am using winforms.
    Saturday, April 26, 2014 8:27 PM
  • Then the .Anchor property of the controls within your tab-control is your friend.  Play around with it until you get the desired effect :-)

    WinForms Control.Anchor property

    • Proposed as answer by Frank L. Smith Saturday, April 26, 2014 11:41 PM
    • Marked as answer by Carl Cai Monday, May 5, 2014 5:12 PM
    Saturday, April 26, 2014 10:04 PM