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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I have multiline text auto-scroll to the bottom?

Status
Not open for further replies.

Firemyst

Programmer
Mar 10, 2003
62
0
0
US
Hi there,

I have a multiline text field which contains status messages. Everytime a new status comes up, it's appended to the text field.

Unfortunately, the scrollbars always seem to reset to the top.

How can I set it up and/or program the text field so that when a new status is appended, the scrollbar will stay scrolled to the bottom?

Thanks!

PS -- Yes, I could just append all new messages at the top of the text field, but the customer doesn't want that. :)
 
try using

text1.selstart = len(text1.text)

I haven't tried this so i'm not sure if it will work.

Mark

The key to immortality is to make a big impression in this life!!
 
It should work, but have you considered using a list box instead?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top