>>It works -- but not all the time [at least in this case]. It works on the first tab I select, but not the next. I can't establish a pattern. One thing that works every time is to click on the tab twice. Once I do that it works every time that tab is selected from that time forward [until the form is closed].
>>
>>I put the setfocus in the page activate method. Could this be causing the problem?
>>
>
>it goes in the GOTFOCUS of the TEXTBOX, not the ACTIVATE of the PAGE.
>
To expand on this, if you want to jump to a specific textbox on the page and have the text automatically selected any time the page is activated, put the SelStart/SelLength code in the textBox's GotFocus event, and put a call to textbox.SetFocus in the page's Activate event.
>>Thanks,
>>Doug