<p>I've got a multiline textBox that I would like to have a label on the form displaying the current line and column position of, as Visual Studio does.</p>

<p>I know I can get the line # with GetLineFromCharIndex, but how can I get the column # on that line?</p>

<p>(I really want the Cursor Position on that line, not 'column', per se)</p>

[{'answer_id': 66500, 'author': 'Joel Coehoorn', 'author_id': 3043, 'author_profile': 'https://Stackoverflow.com/users/3043', 'pm_score': 0, 'selected': False, 'text': '<p>Off the top of my head, I think you want the SelectionStart property.</p>\n'}, {'answer_id': 66561, 'author': 'Omer van Kloeten', 'author_id': 4979, 'author_profile': 'https://Stackoverflow.com/users/4979', 'pm_score': 2, 'selected': False, 'text': '<pre><code>textBox.SelectionStart -\ntextBox.GetFirstCharIndexFromLine(textBox.GetLineFromCharIndex(textBox.SelectionStart))\n</code></pre>\n'}, {'answer_id': 66595, 'author': 'DamienG', 'author_id': 5720, 'author_profile': 'https://Stackoverflow.com/users/5720', 'pm_score': 5, 'selected': True, 'text': '<pre><code>int line = textbox.GetLineFromCharIndex(textbox.SelectionStart);\nint column = textbox.SelectionStart - textbox.GetFirstCharIndexFromLine(line);\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/66475', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/9857/']