Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vertically aligning controls in a TableLayoutPanel

Is there any way to have textual content of controls on a TableLayoutPanel align themselves properly? I've got labels in column 0, and textboxes (or occasionally ComboBox or NumericUpDown controls) in column 1, but the text in the label is usually a pixel or two out (vertically) on most rows.

like image 946
Flynn1179 Avatar asked Sep 09 '10 11:09

Flynn1179


1 Answers

Select all the controls in your table layout panel. In the properties tab ensure anchor set to 'left'. I think it defaults to 'top,left'.
Hope that sets things straight.

like image 79
keegan Avatar answered Sep 20 '22 13:09

keegan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!