By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,646 Members | 2,063 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,646 IT Pros & Developers. It's quick & easy.

Right Align of String Larger Than Text Box

P: 2
Hi all,

I am displaying the path of a file in a text box. In most cases the string will not fit inside the text box, but all I care about is to first see the file name at the right end (with the option of then scrolling to see the rest).

Unfortunately, the "Right Align" option does not seem to work with strings that don't fit in the text box; it still appears as left aligned. It there to solve this, other than truncating the string so that it will fit?


Oct 27 '06 #1
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 8,434
Try this
Expand|Select|Wrap|Line Numbers
  1. Text1.SelStart = Len(Text1)
Oct 28 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.