>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?
>
>Thanks!
>Malcolm
Hi Malcolm,
Since I don't how that third party works in your app, this is just one idea. I think this is really ugly. But try it first
Declare Long FindWindow in User32 ;
String lpClassName, String lpWindowTitle
Declare Long SetWindowPos in User32 ;
Long nhWnd, Long hWndInsertAfter, ;
Integer X, Integer Y, Integer cX, Integer cY, Long wFlags
hWndNotepad = FindWindow( Null, 'Untitled - Notepad' )
SetWindowPos( hWndNotepad, 0, 0,0, 0,0, 3 )
Doevents
= inkey( 0.1 )
SetWindowPos( _VFP.hWnd, 0, 0,0, 0,0, 3 )
Clear Dlls FindWindow, SetWindowPos
Regards
Herman