467,114 Members | 1,220 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,114 developers. It's quick & easy.

Following rich box

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
  • viewed: 1047
Share:
6 Replies
100+
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, 84 views)
Nov 11 '06 #2
Expert 8TB
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
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+
Hi, please elaborate?
hi

meaning

RichText1.SelStart = Len(RichText1.Text)
Nov 12 '06 #5
Expert 8TB
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
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.

Similar topics

15 posts views Thread by Christian Tismer | last post: by
1 post views Thread by PC User | last post: by
1 post views Thread by Peter | last post: by
1 post views Thread by tomi.trescak@gmail.com | last post: by
5 posts views Thread by ARC | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.