RichTextBox: New Line Character Issue

G

Guest

I have text files and I get binary offsets of text portion of these files
from VB6 program with RichTextBox. I use VB.Net 2003 and need to select and
highlight the text between given offsets. RichTextBox does not highlight the
correct string as it treats new line pair as one character. Is there a way to
highlight the correct string ? How do I translate real binary offsets to
richtextbox offsets ?

To reproduce:
I have placed a text box and a rich text box in a form, pressed Enter in
both creating a new line and checked textlengths. TextBox returns 2 and
RichTextBox returns 1. Is there a way to tell RichTextBox not to treat new
line [carriage return & new line] as 1 character.

Thanks for any help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top