Dim pos As Integer = TextBox1.SelectionStart Dim row As Integer = TextBox1.GetLineFromCharIndex(pos) Dim col As Integer = pos - TextBox1.GetFirstCharIndexOfCurrentLine() Me.Text = String.Format("{0}行{1}列", row + 1, col + 1)