How to see always the last line in a RichTextBox 
Author Message
 How to see always the last line in a RichTextBox

I add text to a Sample_RichTextBox:
  Sample_RichTextBox = Sample_RichTextBox & "New Text" & vbNewLine

If there's much text in the Sample_RichTextBox I do have to scroll
manually.
Does anyone know how to display always the last line of the RichTextBox?

Any help is very appreciated
Stefan



Mon, 14 Jun 2004 18:36:37 GMT  
 How to see always the last line in a RichTextBox

Quote:
> Does anyone know how to display always the last line of the RichTextBox?

I use:

rftText.SetFocus
SendKeys "^{END}"



Tue, 15 Jun 2004 08:34:48 GMT  
 How to see always the last line in a RichTextBox
Thanks a lot guys for your great answers. I appreciate it very much

Stefan

Quote:

> > Does anyone know how to display always the last line of the RichTextBox?

> I use:

> rftText.SetFocus
> SendKeys "^{END}"



Tue, 15 Jun 2004 17:54:43 GMT  
 How to see always the last line in a RichTextBox
may be to late ?
today I had the asame problem:
the most easy way is to use:

form1.show
textbox.selstart=<gewnschte Pos>

important is to display first the textbox or may be give it the focus
and than deposit the cursor at the end.

Stefan Mueller schrieb:

Quote:
> I add text to a Sample_RichTextBox:
>   Sample_RichTextBox = Sample_RichTextBox & "New Text" & vbNewLine

> If there's much text in the Sample_RichTextBox I do have to scroll
> manually.
> Does anyone know how to display always the last line of the RichTextBox?

> Any help is very appreciated
> Stefan



Tue, 27 Jul 2004 21:27:23 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. suppress redraw, always show last line in textbox control

2. Can't get richtextbox to scroll down to last line after update

3. Get last visible line of RichTextBox

4. Delete LAST line in RichTextBox: HOW

5. Textbox/label which add a new line and remove the last line

6. Have you seen this apparent bug in RichTextBox?

7. Scroll line by line in RichTextBox

8. problem: ODBC always takes the last user for connect

9. Always show the last row in a ListView

10. Recordcount always 0 after deleting the last row when bound at a Datagrid

11. MoveLast method - Doesn't always go to last row

12. problem: ODBC always takes the last user for new connect

 

 
Powered by phpBB® Forum Software