Jump to line in richtextbox 
Author Message
 Jump to line in richtextbox

Hi,

Does anyone know how to place the insertion point(textcursor) to line n in a
richtextbox. My guess is using window api calls but I don't know much of
them.

Thanks
DrWizard



Tue, 16 Apr 2002 03:00:00 GMT  
 Jump to line in richtextbox
All you have to do is use the SelStart property to move the cursor.


Quote:
> Hi,

> Does anyone know how to place the insertion point(textcursor) to line n in
a
> richtextbox. My guess is using window api calls but I don't know much of
> them.

> Thanks
> DrWizard



Wed, 17 Apr 2002 03:00:00 GMT  
 Jump to line in richtextbox

Quote:

>All you have to do is use the SelStart property to move the cursor.



>> Hi,

>> Does anyone know how to place the insertion point(textcursor) to line n
in
>a
>> richtextbox. My guess is using window api calls but I don't know much of
>> them.

>> Thanks
>> DrWizard

I know that SelStart should be used, but perhaps I haven't described my
problem properly. If a user has typed, lets's say a 1000 lines of text in
the textbox and I want to jump to line 500, I don't know where line 500
starts in the richtextbox.
You can't tell SelStart to go to line 500 directly. First you have to
determine at what position line 500 starts in the textbox and then do
something like : object.SelStart = position of start of line 500

Thanks
DrWizard



Thu, 18 Apr 2002 02:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Write line and jump to next line

2. Jump to the end of RichTextbox

3. Scroll line by line in RichTextBox

4. Novice: Jump to a specific line?

5. Row jumps to next page when adding line

6. Jump to line in RTF

7. Jump to a line in a textbox?

8. Line is jumped in Rich Text Box Control

9. RichTextBox Line Numbers

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

11. Get last visible line of RichTextBox

12. Selecting a line of text from a RichTextBox

 

 
Powered by phpBB® Forum Software