>Hi Naomi,
>
>>I'm not sure what's causing this strange problem and how to remedy it.
>
>have you verified that the Show method is indeed being called the second time?
Christof,
I called the form 5 times from the menu. Just opened the form and closed it. The 5th time it came without a focus :(
I tested some other forms in this application and I can not reproduce the problem. Other forms don't have a pageframe on them.
This form has a pageframe and the following code in form's Activate method:
DODEFAULT()
IF thisform.pgfProblemsResolutions.Activepage = 0 && First time
thisform.pgfProblemsResolutions.ActivePage = 1
endif
There is also code in the Activate method of the page. The form appears with a focus on the grid.
One more bit of information related to the form - it has a timer used in order to create tooltips for the grid. Could it be that this class cause the unwanted behavior?
Thanks a lot again.
If it's not broken, fix it until it is.
My Blog