c# - How do I make a TextBox always align to the right, even if the text is clipped? -
i have windows.forms.textbox
textalign = horizontalalignment.right
. works when text short enough, when text long fit in box, alignment appears revert left-aligned.
the text automatically generated filename where, ux purposes, end of string more meaningful beginning, therefore it's better crop off start end.
how can make textbox
align text right margin, if text long text box?
first answer might use substring method via code , put on textbox. second answer migth change textbox multiple lines can see path. hope helps.
Comments
Post a Comment