>>Add a custom property to your editbox superclass - something like nRealSelStart - default to -1.
>
>Trey,
>
>Why do you have to do that? I just tested and using .selstart works fine for me. Am I missing something?
>
>If a put the following in a button on a form
Thisform.MyEdit.SelStart = 4
. Type 10 characters in the edit box, click the button, then tab back to the edit box, the cursor is in the 4th position.
It works for me, too, but Fransisco indicated that simply setting SelStart was not working for him, so I suggested he try this to get around it.
You know, I forgot to even ask if the edit box was empty to begin with....
Insanity: Doing the same thing over and over and expecting different results.