writing from bottom up in rich text box

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2005
Posts: 206
Reputation: plazmo is an unknown quantity at this point 
Solved Threads: 16
plazmo's Avatar
plazmo plazmo is offline Offline
Posting Whiz in Training

writing from bottom up in rich text box

 
0
  #1
Feb 5th, 2006
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!
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 206
Reputation: plazmo is an unknown quantity at this point 
Solved Threads: 16
plazmo's Avatar
plazmo plazmo is offline Offline
Posting Whiz in Training

Re: writing from bottom up in rich text box

 
0
  #2
Feb 6th, 2006
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??!?!?
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 275
Reputation: f1 fan is an unknown quantity at this point 
Solved Threads: 11
f1 fan f1 fan is offline Offline
Posting Whiz in Training

Re: writing from bottom up in rich text box

 
0
  #3
Feb 9th, 2006
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?
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 206
Reputation: plazmo is an unknown quantity at this point 
Solved Threads: 16
plazmo's Avatar
plazmo plazmo is offline Offline
Posting Whiz in Training

Re: writing from bottom up in rich text box

 
0
  #4
Feb 9th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 275
Reputation: f1 fan is an unknown quantity at this point 
Solved Threads: 11
f1 fan f1 fan is offline Offline
Posting Whiz in Training

Re: writing from bottom up in rich text box

 
0
  #5
Feb 9th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 206
Reputation: plazmo is an unknown quantity at this point 
Solved Threads: 16
plazmo's Avatar
plazmo plazmo is offline Offline
Posting Whiz in Training

Re: writing from bottom up in rich text box

 
0
  #6
Feb 13th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 206
Reputation: plazmo is an unknown quantity at this point 
Solved Threads: 16
plazmo's Avatar
plazmo plazmo is offline Offline
Posting Whiz in Training

Re: writing from bottom up in rich text box

 
0
  #7
Feb 13th, 2006
ok ive found what i was looking for. heres all i needed

  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
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 4
Reputation: SupportCuteSoft is an unknown quantity at this point 
Solved Threads: 0
SupportCuteSoft SupportCuteSoft is offline Offline
Newbie Poster

Re: writing from bottom up in rich text box

 
0
  #8
Jul 29th, 2008
You can use RichTextBox which is very powerful and professional.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC