Click to See Complete Forum and Search --> : Textbox automatic scrol down


Cakkie
January 31st, 2000, 11:48 AM
Is it possible to let a textbox control automatically scroll down when the text has changed.
eg:


private sub addText(byval myText as string)
txtOut.text = txtOut.text & vbcrlf & myText
End Sub




So when the text in txtOut becomes to large to display, it should scroll down so the last thing added should be visible. This is for a log window, so the event last happend should be at the bottom of the textbox control.

Reznor_X
January 31st, 2000, 02:29 PM
add this to your code:

txtOut.SelStart = len(txtOut)

this should send the cursor to the end of the textbox.