Hello Paul, This looks very interesting, but unfortunately it did not help with my problem.
I know the timer fired to release the temp form because I put a wait window msg in the timer method, but the container still has the same problem with the lost focus -----Original Message----- From: ProFox [mailto:[email protected]] On Behalf Of Paul Newton Sent: Friday, June 27, 2014 11:05 AM To: [email protected] Subject: RE: Focus not in correct place I had a similar problem and solved it like this: In one of your procedures define a timer as follows Define Class "TempTimer" As Timer Interval = 1000 Procedure Timer() Thisform.Release() EndProc EndDefine Add a property lFirstActivate (default value .T.) to the form that is causing a problem, then put the following code in the forms Activate method Local loForm As Form loForm = CreateObject("Form") loForm.AddObject("oTimer", "TempTimer") loForm.Left = -1000 loForm.Top = -1000 loForm.Show(1) This.lFirstActivate = .F. HTH Paul -----Original Message----- From: ProfoxTech [mailto:[email protected]] On Behalf Of Kent Belan Sent: 27 June 2014 15:53 To: [email protected] Subject: Focus not in correct place Happy Friday !! I have been trying to fix this problem for a while, but I am stumped. I have a VFP9 form that has several containers on the form. Depending on the menu item selected, the program will load other containers inside the main containers on the form. I have one container that on the first load only, the focus is lost when the container loads. Everything looks fine with the container but when you hit the TAB key the computer beeps like it can not tab. I also can not type in any of the text boxes. The weird thing is I can click in any of the text boxes, but it will not let me type. The dropdown controls do work and I can click on the down arrow of the control and drop the options. If I click on the same menu option the second time, everything is working fine and the focus is correct and the text fields work as expected. I am stumped how to figure out where the focus is on the first load. Is there any way to find out where the focus is or why the container that was just loaded does not have the focus on the first load. If I run the debugger, the focus changes and when I click back on the container, every thing is working like normal I hate these kind of problems ............... [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

