>>>>Is it possible for an object to have the focus and not be the ActiveControl? I can see the focus box on a button, but I have a timer that displays a different ActiveControl. I have a situation where it is taking two clicks to get a page tab to change. I've been playing around with the NoDefault, but it hasn't seemed to make a difference. Thanks!
>>>>
>>>>Regards, Renoir
>>>
>>>I think not. However this could be :
>>>
>>>thisform.somecontrol.setfocus
>>>*Fast code - here somecontrol seems to be activecontrol
>>>this.setfocus && This is what you see as having focus
>>>
>>>Cetin
>>
>>Cetin,
>>
>>Actually, it seems that there is a focus box in the grid cell AND on the command button below it. The ActiveControl is the grid. Below is why I asked the question in the first place.
>>
>>Three pages on pageframe where:
>>
>>
>>Page2: contains Grid and Button1
>>Page3: contains Button2
>>
>>
>>This is the behavior as it relates to my question:
>>
>>
>>1. Click on Page2 tab and Page2 becomes active; focus is on Grid
>>2. Click on Button1 and Page3 becomes active; focus is on Page3
>>3. Click on Button2 and Page2 becomes active; focus is on Grid
>>4. Click on Page1 tab and Page2 remains active; focus is on both Grid and Button1
>>5. Click on Page1 tab again and Page1 becomes active; focus goes to Page1
>>
>>
>>Only number 4 above is not behaving as I expect it. It takes two clicks on the Page1 tab to actually get Page1 to activate. I simplified this and I know it's difficult at best to follow this type of stuff when you don't have the code, but do you have any ideas? Thanks!
>>
>>Renoir
>
>Renoir,
>First thing that comes to mind is a lockscreen.
>Cetin
Cetin,
No LockScreen issues, but I did find what corrected the problem. In Page3.Button2.Click was code to set the focus to Grid and set ActivePage = 2. Just for the heck of it I removed the Page2.Grid.SetFocus call and it works fine. Seems like there's a pretty fine line to walk when working with SetFocus, Refresh, ActivePage and Activate... I'm always spending an inordinate amount of time tracking down these types of issues rather than developing it seems...
Thanks for your time on this!
Renoir