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

How to get VB6 Text Box to Scroll Down, show New Text

Status
Not open for further replies.

BruceBussell

Programmer
Jul 14, 2003
49
US
I have set up a VB6 MultiLine Text Box with Vertical and Horizontal Scroll Bars.

But when I add text lines to it at runtime, and the text lines pass below the bottom of the Text Box, it does not scroll down to show the latest text that is added, but simply stays at the top of the Text Box

How do I get the Text Box to scroll down so it always shows the latest text lines that are added.
 
Use the SelText property and set it to the length of the text

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Er, the SelStart property and set it to the length of the text, I believe johnwm means.

 
OOPS ... Thanks Bob! [blush]

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top