Hi guys
got a few questions all revolving round richtextbox

1, i want to display line numbers next to each line in the box
2, i want to be able to click at the begining of a line and select(hightlight) the whole line.

got as far as this

Code:
With RichTextBox1
        .SelStart = 0
        .SelLength = Len(this bit eludes me)
    End With
i am sure there is some code where i have said this bit eludes me to tell it to stop at the end of the line?

thanks in advance