>I've tested the Dragan Nedeljkovich's code in Run-time mode (stand-alone exe) for VFP 7.0
>
>Works with all the keys from F2 to F9
>
>key code
>F2 -1
>F3 -2
>...
>F9 -8
>
>
>F1 - reserved for the help system
>F10 - reserved for activating the menu
Thanks, so this proves F2 is trappable in runtime. Maybe bookmarks can be switched off (redefining the system menu?) so it would work inside VFP as well.