>>>Change the Tab Order.
>>
>>That doesn't do it. I've already got the tab order the way I want it. The first box in the tab order is not the control the gets focus when the form activates.
>>
>>Unless I'm seeing things...
>
>I think you're seeing one of the VFE's tricks. It's trying to find (at least in V6 and later, but I think it's been that way before) any control where TabOrder=1. Now if you've played with the tab order so that none of your controls has TabOrder=1, it may find such one in some of the containers.
>
>I know I was fighting that one for a while, and spent a happy hour in the debugger until I found that. Don't know if it applies to your case, though.
I'm sure you are right. VFE has code which effects focus. When I create a simple form I got the expected behavior that focus goes to the control with the lowest TabIndex. (See above.)
I'm "cleaning up" some of the routes that my forms take through my modified VFE code.
Peter
Peter Robinson ** Rodes Design ** Virginia