Please help me to read out each character of a particular line in a rich textbox.

Eg: 6 11 345

I need to read 6 first and then 11 and then 345 etc etc..

Recommended Answers

All 3 Replies

Have you tried using the "Split" method? you can read each line into a string variable and then split it by using the space as the delimiter.

Try with the below code

RichTextBox1.Lines(1).Substring(6, 1) retrieves 6th character in line 1


Does this help you?

Anything more??

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.