i'm trying to create a rogramme that will compare the arrays between
richtextbox1 and richtextbox2. if there is any error(s),then i will highlight
the current array line in the richtextbox1. e.g.,if array1(7) <> array2(7) then
i will highlight only array1(7) which is in the richtextbox1.how can i do this...?
I know already that i should use command beloow to settle the problem but
i dont know how to state the selection start command...:

Textbox1.SelectionColor = Color.Pink
Textbox1.SelectionStart = XXXXXXXXXX
Textbox1.SelectionLength = Len(array1(i))

Use RichTextBox1.Text.IndexOf Method.