I have a textbox on my form, when I add text to it the scroll bars scroll back up to the top. How can I make them stay at the end, so the text box displays the newest text?
Thank you,
Sir Loin
Printable View
I have a textbox on my form, when I add text to it the scroll bars scroll back up to the top. How can I make them stay at the end, so the text box displays the newest text?
Thank you,
Sir Loin
Use this:
VB Code:
text1.selstart = len(text1.text)
I tried that, it made the caret go to the lowest part of the textbox, but it still didn't scroll down.
EDIT: It works when I send text to the text box, but not when I first set the text in the textbox in the form's Load event.
Thank you,
Sir Loin
Did you try putting that in the Form's Activate event instead of the Load event?
No! Darn! Thanks! :D
-Sir Loin
No problem :wave:
BTW baja_yu, nice avatar!! :thumb: