944,131 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 13417
  • VB.NET RSS
Feb 5th, 2006
0

writing from bottom up in rich text box

Expand Post »
is there any simple way to do this?

im making a chat client and i want it to display text like all chat clients do, which is buttom to top.
Thanks!
Similar Threads
Reputation Points: 23
Solved Threads: 16
Posting Whiz in Training
plazmo is offline Offline
206 posts
since Aug 2005
Feb 6th, 2006
0

Re: writing from bottom up in rich text box

Quote originally posted by plazmo ...
is there any simple way to do this?

im making a chat client and i want it to display text like all chat clients do, which is buttom to top.
Thanks!
well i know how to write it how i want it in the rich text box. but i need it to auto scroll down. anyone??!?!?
Reputation Points: 23
Solved Threads: 16
Posting Whiz in Training
plazmo is offline Offline
206 posts
since Aug 2005
Feb 9th, 2006
0

Re: writing from bottom up in rich text box

Most chat clients dont write from the bottom up.

They write from the top down but when it is full they start to scroll. Is this a web or windows forms app?
Reputation Points: 26
Solved Threads: 11
Posting Whiz in Training
f1 fan is offline Offline
275 posts
since Jan 2006
Feb 9th, 2006
0

Re: writing from bottom up in rich text box

i guess i meant that. but i need help on making it auto scroll. because when it fills regularly, the new text is put below the old text which is out of display.
this is a windows form
Reputation Points: 23
Solved Threads: 16
Posting Whiz in Training
plazmo is offline Offline
206 posts
since Aug 2005
Feb 9th, 2006
0

Re: writing from bottom up in rich text box

Its been a while since i used the rtb and did anything like it. From memory though i think i had to select the last character and then unselect it without the rtb painting. I will look and see if i can get back to you with something more definite
Reputation Points: 26
Solved Threads: 11
Posting Whiz in Training
f1 fan is offline Offline
275 posts
since Jan 2006
Feb 13th, 2006
0

Re: writing from bottom up in rich text box

Quote originally posted by f1 fan ...
Its been a while since i used the rtb and did anything like it. From memory though i think i had to select the last character and then unselect it without the rtb painting. I will look and see if i can get back to you with something more definite
ive seen people saying to select the last char then unselect it, but when there gets to be a lot of text it gives a flicker effect which i wanted to avoid.
But maybe it wont be visable if its done before its painted, but i dont think paint is called anything the text changes does it?
i guess i could always just create my own textbox control which does this.
Reputation Points: 23
Solved Threads: 16
Posting Whiz in Training
plazmo is offline Offline
206 posts
since Aug 2005
Feb 13th, 2006
0

Re: writing from bottom up in rich text box

ok ive found what i was looking for. heres all i needed

VB.NET Syntax (Toggle Plain Text)
  1.  
  2. RichTextBox1.AppendText(newText)
  3. RichTextBox1.SelectionStart = Len(RichTextBox1.Text)
  4. RichTextBox1.ScrollToCaret()
  5. RichTextBox1.Select()


i dont understand why ms couldnt make is simple and include it in the IDE
Reputation Points: 23
Solved Threads: 16
Posting Whiz in Training
plazmo is offline Offline
206 posts
since Aug 2005
Jul 29th, 2008
0

Re: writing from bottom up in rich text box

You can use RichTextBox which is very powerful and professional.
Reputation Points: 8
Solved Threads: 0
Newbie Poster
SupportCuteSoft is offline Offline
4 posts
since Jul 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Iterating MultiDementional Array
Next Thread in VB.NET Forum Timeline: cancel button problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC