Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic scrolling in multiline textbox 1

Status
Not open for further replies.

Sashanan

Programmer
Jan 19, 2001
235
NL
I've added a vertical scroll bar to a multiline textbox. Over the course of running the application, text is automatically added to this box, to the point where it fills up and the scrollbar comes into play. Unfortunately the text doesn't scroll automatically.

I would like for the scrolling down to automatically kick in when necessary, because right now the user would have to scroll manually every time. How can I accomplish this?
"Much that I bound, I could not free. Much that I freed returned to me."
(Lee Wilson Dodd)
 
After you've added the text, there is a property called SelStart for the text box control which sets the cursor position. Set this to be the same as then length of the text ( use len() ).
 
That did the trick. Thanks!
"Much that I bound, I could not free. Much that I freed returned to me."
(Lee Wilson Dodd)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top