Aug 26th, 2004, 07:48 AM
#1
Thread Starter
New Member
Text box scrolling
How do I make my text box automatically scroll down when it's text is changed? I am making a chat app and I have finally got it to work but when the amount of text exceeds the size of the text box the scroll bar is activated but it stays up the top. Is there code to bring it down? - Thanks for your help
Aug 26th, 2004, 08:16 AM
#2
Yeah, in a roundabout sort of way.
Use
Code:
text1.SelectionStart = text1.text.length
text1.SelectionLength = 0
Something like that, I haven't got the energy to try it myself. See if it works. If you get an error on the first line try subtracting 1 from the length
Aug 26th, 2004, 08:33 AM
#3
Thread Starter
New Member
- Invalid qualifier .Text ???
hmm weird
Aug 26th, 2004, 09:00 AM
#4
Addicted Member
Resolution
TextBox1.SelectionStart = TextBox1.TextLength
TextBox1.ScrollToCaret()
yeeehaw - My First Attempt at Assistance.
Curiosity SKILLED the cat
Google Talk from your Mobile phone
Chat from your mobile or get an emulator like J2ME Wireless Toolkit 2.2
Aug 26th, 2004, 09:32 AM
#5
Thread Starter
New Member
still not working
Aug 26th, 2004, 09:33 AM
#6
Thread Starter
New Member
Aug 26th, 2004, 10:37 PM
#7
Hyperactive Member
maybe you can cut off the text that goes past the top line.. so you can avoid the scroll bars and not have to scroll~
Aug 27th, 2004, 03:05 AM
#8
Addicted Member
Try This
Attached Files
Curiosity SKILLED the cat
Google Talk from your Mobile phone
Chat from your mobile or get an emulator like J2ME Wireless Toolkit 2.2
Aug 27th, 2004, 03:13 AM
#9
Hyperactive Member
Just do this...
VB Code:
me.textbox1.AppendText("Text text text" & vbcrlf)
"I'm Brian and so is my Wife"
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