I have a Windows.Forms.TextBox
with TextAlign = HorizontalAlignment.Right
. This works when the text is short enough, however when the text is too long to fit in the box, the alignment appears to revert to left-aligned.
The text is an automatically generated filename where, for UX purposes, the end of the string is more meaningful than the beginning, therefore it's better to crop off the start than the end.
How can I make the TextBox
always align its text to the right margin, even if the text is too long for the text box?