>>I have a form with an ActiveX browser control. A Right click on the browser control brings up a VFP shortcut menu. All that works fine. However, when the user then right clicks on a normal container, with a shortcut menu on right click, the menu fires as if the user clicked on it. I strongly suspect that the 1st mouse click is still in the buffer and is firing on the 2nd menu. I tried =inkey() and clear typeahead and they made no difference which is why I suspect the mouse click.
>>
>>I have verified that this only happens after right clicking on a browser control.
>>
>>Is there a clear typeahead for mouse click?
>
>
>DO WHILE INKEY("M") <> 0
>ENDDO
>
Jos, Thanks for the input but it did not work. There is something very strange going on here, something left over from right clicking the ActiveX browser, but I think I fixed it by setting focus to a dummy text box before showing the 2nd shortcut menu. Not sure what is firing off the menu selection but the text box eats it up.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn