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!

Automatic Scrolling

Status
Not open for further replies.

MaTtRiX

IS-IT--Management
Aug 8, 2000
9
0
0
US
Hi,
I am using VB 5.0 and I have a question about scrolling in a text box. Is there a way to automatically scroll down to the bottom of the text ? i have a file that i need to be refreshed every minute or so, and when it does it jumps back to the top of the file. I would like to be able to keep it at the bottom of the file. Any suggestions, or settings that i might be able to try?

Thanks! [sig][/sig]
 
Hi,

All you need to do is the following within the refresh function:

Text1.SelStart = Len(Text1) - that will (in effect) select the last character in the text box.

Hope this helps, if not, please mail me:

glenmaroney@breathemail.net [sig][/sig]
 
Thanks Pie!! It worked like a champ. [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top