C# – Center labels in Tablelayoutpanel

c

I Can not get Labels to "Snap" to The Center of a cell in Tablelayoutpanel.
I tried to Set The anchor to none in the Tablelayoutpanel.TextAlign to center & AutoSize to false in the Label before dragging it to the Tablelayoutpanel,no joy.The Label just stays at the top left?I want the Label to align with the TextBox I have in it.

Is their some kinda trick to this? or should i be using a other layout panel?

Best Answer

Just replace Anchor property of the label from Top, Left to None. Set None

Related Topic