You can achieve this by using getting the SelectionStart property. You can also move the cursor by setting the position you want.