>In other high-level language,such as VB,Delphi,VC,PB.
>they can regiter hot key by call RegisterHotKey(),but I don't kown how to achieve it in VFP.
In general, in Visual FoxPro, using API functions (functions made available by the Windows API) require a DECLARE statement.
Many API examples can be found under
www.news2news.com; there are some explanations for RegisterHotKey() here:
http://www.news2news.com/vfp/?group=-1&function=726HTH,
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)