Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Focus shifts to Calling form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00818877
Message ID:
00820164
Views:
18
Hi Bruce,

Further to my earlier message and your reply, I have now been able to determine the scenario where the problem occurs. The lowest level form is a search with callbacks to the previous form such as:

eSourLst.GrdData.Refresh()
eSourLst.GrdData.SetFocus()
eSourLst.ShowDetail()
eSourLst.Refresh()

The purpose here is to reposition the grid to the located record. It seems that by doing this, the VFP form calling heirarchy gets confused. BTW, I have no room on the grid form to place the search criteria.

By placing a THIS.SetFocus() after calls to each of the forms, VFP finally remembers where the focus should be and the problem goes away. I know this is a different solution to what you came up with, but I felt it worthwhile repeating incase anybody else strikes the same problem.

Thanks for helping me get my thinking cap on.

Regards...Rex
Rex Toomey
ISD Port Macquarie NSW
Australia

'Inside every older person is a younger person wondering what happened.'
Previous
Reply
Map
View

Click here to load this message in the networking platform