Thanks, that did it.
>
I have a text box with an input mask of '0-99999' and a format of K. I would like the cursor to be in the 3rd column, i.e. after the '0-' when entering new data.>
>This code in the GotFocus():
>
>
>Textbox::GotFocus()
>This.SelStart = 3
>NODEFAULT
>
>
>The reason you have to do it like this is because, by default, the native VFP method code ( if there is any ) runs after any of your custom code. The native behavior of GotFocus() is to reset SelStart and SelLen. So you need to have the native behavior occur before you set these properies and not after.