|
-
Sep 4th, 2005, 05:35 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] Text Box Scrolling
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
-
Sep 4th, 2005, 05:37 PM
#2
Re: Text Box Scrolling
Use this:
VB Code:
text1.selstart = len(text1.text)
-
Sep 4th, 2005, 05:39 PM
#3
Thread Starter
Fanatic Member
Re: Text Box Scrolling
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
-
Sep 4th, 2005, 05:43 PM
#4
Re: Text Box Scrolling
Did you try putting that in the Form's Activate event instead of the Load event?
-
Sep 4th, 2005, 05:46 PM
#5
Thread Starter
Fanatic Member
Re: Text Box Scrolling
No! Darn! Thanks! 
-Sir Loin
-
Sep 4th, 2005, 05:48 PM
#6
Re: [RESOLVED] Text Box Scrolling
No problem
-
Sep 4th, 2005, 06:24 PM
#7
Re: [RESOLVED] Text Box Scrolling
BTW baja_yu, nice avatar!!
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|