且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

窗体形式文本框文本对齐

更新时间:2023-12-06 16:14:58

TextAlign 属性看起来会满足您的要求。



The TextAlign property looks like it will satisfy your requirement.

txtFolderName.TextAlign = HorizontalAlignment.Right 


试试这个:



Try this:




yourTextBox.SelectionStart = yourTextBox.TextLength;




yourTextBox.SelectionStart = yourTextBox.TextLength








希望这会有所帮助。



Hope this helps.