Hi Herman
Thank you for your code! Your code executes perfectly, but doesn't generate the mystery Windows message my application needs to restore access to keyboard events.
Can you think of a Windows message that gets sent to an application when one Alt+Tabs away from it and then back again? The same message is sent when I resize my toplevel form via the mouse but is not sent when I resize my form with the sysmenu Size menu and keyboard cursor keys.
I've also tried SetForegroundWindow( _VFP.hWnd ) without success.
Basically ... (I think) ... I want to reactivate my application.
As always, thanks for your generous help!
Malcolm
I'm using a 3rd party toolbar component that loses access keyboard events when I REPORT FORM in a top level form. The workaround - to restore access to keyboard events - is to Alt+Tab to another application and then back to my application. This restores my 3rd party toolbar's ability to recognize keyboard events. I can also restore keyboard events by using the mouse to resize my top level form.
Any suggestions on an API call that would accomplish the same effect as either of these techniques?