By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,593 Members | 2,006 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,593 IT Pros & Developers. It's quick & easy.

Following rich box

P: 8
Hi I am making a chat program. When wsk_receiver gets data, it adds it to a new line on rich_history to make a sort of history for the chat. However, when the rich box is filled up even with scroll bars, it doesn't keep following what was last added. How can i make it scroll down when text is added?

Thank you.
Nov 11 '06 #1
Share this Question
Share on Google+
6 Replies


100+
P: 267
Hi I am making a chat program. When wsk_receiver gets data, it adds it to a new line on rich_history to make a sort of history for the chat. However, when the rich box is filled up even with scroll bars, it doesn't keep following what was last added. How can i make it scroll down when text is added?

Thank you.
hi i made a chatprogram myself
little trouble with the richtextbox but finally made something out of it.
have a look and use what you need ... :)
Attached Files
File Type: zip chat.zip (27.9 KB, 72 views)
Nov 11 '06 #2

Expert 5K+
P: 8,434
Hi I am making a chat program. When wsk_receiver gets data, it adds it to a new line on rich_history to make a sort of history for the chat. However, when the rich box is filled up even with scroll bars, it doesn't keep following what was last added. How can i make it scroll down when text is added?

Thank you.
Just from memory, I think it may be a matter of setting SelStart to the end of the text.
Nov 11 '06 #3

P: 8
Just from memory, I think it may be a matter of setting SelStart to the end of the text.
Hi, please elaborate?
Nov 12 '06 #4

100+
P: 267
Hi, please elaborate?
hi

meaning

RichText1.SelStart = Len(RichText1.Text)
Nov 12 '06 #5

Expert 5K+
P: 8,434
RichText1.SelStart = Len(RichText1.Text)
Yeah, sorry, I was short on time so just posted a quick hint. albertw's response shows exactly what I meant.
Nov 12 '06 #6

P: 8
Thank you both very much!
Nov 13 '06 #7

Post your reply

Sign in to post your reply or Sign up for a free account.