Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to restore FOCUS to a form?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01621417
Message ID:
01621420
Views:
69
>>Hi Tommy,
>>
>>Just a shot in the dark... In our POS system we would call the child form and set a parent form property. Then when the user is finished with the child form., we SETFOCUS to the control on the parent form.
>>
>>Hope this helps,
>>
>>Ken
>
>Ken
>
>These are 2 different EXE's..... so would I be able to use the parent/child relationship in this situation ?
>
>Thanks!

If there is a shooting then I will shoot, and if it is in the dark even better so nobody will know it was me!

What about passing the hWnd of the form to the second exe (it is just a number so it should not be a problem) and then calling SetActiveWindow

Alternatively, if you can't or don't want to pass the parameter you can use FindWindow to find the hWnd of the parent exe and call SetActiveWindow using that.


[Update]I see you already have the hWnd, so you can ignore that part of the message and just try to call SetActiveWindow[/update]
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Reply
Map
View

Click here to load this message in the networking platform