Label grow from right to left

Yash picture Yash · Apr 10, 2011 · Viewed 53.1k times · Source

I have a label on my form which is on the right of the form. This label loads a dynamic text.

Sometimes the text that it loads is too long and the text crosses the border of the form, that is some of the text is out of the form.

I want to make the label to grow from right to left instead of left to right. How do I achieve this?

Answer

Alejandro del Río picture Alejandro del Río · Dec 16, 2013

I solved this by setting the label

AutoSize property to false,

TextAlign to MiddleRight,

an Anchor to the right.

Notice that the label size itself is not growing with the text, but you can handle it by giving it enough width to fit the content. The visual effect is the same.