>Scenario:
>
>I set the value of a textbox from a different control, and then I want to set the focus to that control. When I do that I'd like for the cursor to be AFTER the value that's in there.
>
>Specifically, it's a phone number field, and I want it to automatically put in the Area code, and then set the focus to that box, placing the cursor after the area code (309| ) instead of in front.
>
>I don't know how to do this, and I tossed it around here and got no ideas. Please drop some ideas if you have any.
>
>Thanks!
Set the textbox's .SelStart to where you want to be (0 based) and .SelLength to be 0. You should be able to do that in GotFocus.