Textbox Control

  • Thread starter Thread starter Charles A. Lackman
  • Start date Start date
C

Charles A. Lackman

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
 
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
 
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
 
Back
Top