dotnetmonitor.com

 
Index
Previous
Next

 

Problem: When Ok and Cancel buttons are localized, it is a best practice to make sure that the localized OK and Cancel buttons are of the same size.

 

Solution: Put the OK and Cancel buttons in an AutoSized TableLayoutPanel with column styles set to 50% and 50% respectively. The anchors for the Ok and Cancel buttons should be set to Left|Right so they stretch from edge-edge of the cell.

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?