When counting lines in a textbox, the count is off.
If I click below the text the curser appears two rows beneath the text.
the count is off by 2.
the count seems to be counting to where the curser appears (if I click below the text).
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
Dim ln As Integer = TextBox20.Text.Length TextBox20.SelectionStart = ln 'This should place the curser at - 'the end of the text. 'TextBox20.ScrollToCaret() Dim lines() As String = TextBox20.Lines TextBox77.Text = TextBox20.Lines.Length End Sub