Search results

  1. R

    Using SelLength and SelStart

    I've just realised what my problem was! It hadn't occurred to me that a line of code before that was using the .text property to get the text string was in fact selecting the text...durr. By putting the cursor position getting code in before the code that selects the text, my problem is now solved!
  2. R

    Using SelLength and SelStart

    Misslinglinq, thanks for your reply. Essentially that is exactly what I'm doing with regards to variables. I have no issue resetting the cursor value to some arbitrary position after returning focus to the text box in question and had the code working using the string length as the new cursor...
  3. R

    Using SelLength and SelStart

    Hi, I have a similar problem. I'm trying to use the selstart property to retrieve the cursor position in a textbox on a form so that when I return focus to the textbox, I can set the cursor position back to where it was before the textbox lost focus. The problem is, the selstart property returns...
Back
Top Bottom