473,394 Members | 1,567 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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
6 1205
albertw
267 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, 103 views)
Nov 11 '06 #2
Killer42
8,435 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
albertw
267 100+
Hi, please elaborate?
hi

meaning

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

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

Similar topics

15
by: Christian Tismer | last post by:
Dear friends. During a conversation with good friends and newly acquired Pythonista, we were discussing Python, what it is in essence, and what it is giving to us. The people were Dinu...
1
by: PC User | last post by:
I found this Rich Text Editor and I've been trying to recreate it in my own application. I've had trouble with the COMCTL.ImageListCtrl and the COMCTL.Toolbar to recreate the toolbar. And I've...
1
by: Peter | last post by:
I have written a small terminal app that reads and writes to the serial port. In particular as the data is read from the serial port it is appended to the rich text box. The problem I am...
1
by: tomi.trescak | last post by:
Hi I have a problem with storing rich text in MySQL. I store rich text in MySQL (in column with type "text") which i get from Rich Textbox control. When i do reverse processing by trying to...
9
by: Neil | last post by:
I need to implement a rich text box in an MDB file for a user base that consists of Access 2000 and Access 2002. Unfortunately, I'm using Access 2003 on my development machine. My understanding is...
5
by: ARC | last post by:
Just found out something interesting with Access 2007... In table design, if you set a memo field to the new rich text option, and put that control on a form, set the control to rich text, you can...
4
by: Neil | last post by:
Just found out that the Microsoft Rich Textbox does not support full text justification, since it's based on Version 1.0 of the RichEdit Window Class, and full text justification is only available...
16
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.