vb.net select line in richtextbox
Posted on 2006-10-30
I need to be able to select all of the text in a richtextbox on the line that the user doubleclicks. However, thus far I have been unable to determine exactly how to do this.
I have experimented with the following code:
Dim start As Integer = txtNotes.SelectionStart
Dim len As Integer = txtNotes.SelectionLength
This is only selecting the word that the user clicks on, and not the entire line as is needed.
For reference, I am working in vb.net 2005.