G
Guest
I want to get the cursor location in a textbox. If text in the box is selected, txtName.SelectionStart returns the start of the text. If no text is selected, SelectionStart returns 0 regardless of cursor location in control.
Is there a property that would return where the cursor is located? I am trying to use this property in combination with a context menu for that control. Specifically, I want to insert text at the current location of the cursor.
Is there a property that would return where the cursor is located? I am trying to use this property in combination with a context menu for that control. Specifically, I want to insert text at the current location of the cursor.