Hello,
I have a textbox with data in it that extends beyond the size of the text
box. I am looking for a way to display the data in the textbox with the
data scrolled all the way to the right:
Before:
-------------------
| Peter Piper|
-------------------
After What I Want:
------------------
|led Pickels.|
------------------
The text is justified to the right (I already tried it with setting the text
justification to the right with no luck).
Thanks,
Chuck
Dave Sexton - 11 Aug 2006 01:39 GMT
Hi Charles,
Didn't you mean |led Peppers.|?
You can use the following code to programmatically set the position of the cursor in the TextBox to the end of the line:
txtRhymes.SelectionStart = txtRhymes.TextLength
TextAlign, as you found out, deals with appearance only and not behavior.
HTH

Signature
Dave Sexton
> Hello,
>
[quoted text clipped - 18 lines]
>
> Chuck
Charles A. Lackman - 11 Aug 2006 02:27 GMT
Thank You,
Chuck
Hi Charles,
Didn't you mean |led Peppers.|?
You can use the following code to programmatically set the position of the
cursor in the TextBox to the end of the line:
txtRhymes.SelectionStart = txtRhymes.TextLength
TextAlign, as you found out, deals with appearance only and not behavior.
HTH

Signature
Dave Sexton
> Hello,
>
[quoted text clipped - 19 lines]
>
> Chuck