Find the Line Number in a TextBox


Private Sub TextBox1_MouseClick()
lblCursorLoc.Text = _
“Line Number: ” & _
(Math.Round(( _
Cursor.Position.Y – Me.Location.Y – _
TextBox1.Location.Y – 36) / 13)) _
.ToString
End Sub

2 responses to “Find the Line Number in a TextBox

  1. Pingback: Find the Line Number in a TextBox « Source Code VB | BlogBov

  2. Pingback: Find the Line Number in a TextBox « Source Code VB | BlogBov

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s