dotnetmonitor.com

 
Index
Previous
Next

 

Here is the scenario:

Simply setting Button.AutoSize=true would cause the buttons to have unequal size, ala:

 

Instead,

  1. place the controls within a TableLayoutPanel
  2. One row and three columns for this example

 

 

  1. Set each column to equal percentage column style
  2. Anchor all buttons Left, Right (stretch)
  3. Set TableLayoutPanel AutoSize to true

 

The buttons now will resize correctly

Terms
Docking Anchor Layout
What happens when I have Dock and Anchors that conflict?
Dock Scenarios
Padding Margin
You have a perf problem with Layout - how to diagnose?