>thanks,but I need the system-wide hot key.
>I want to press a key in windows to activate my form.
>
>RegisterHotKey()?
Sorry, I thought with "system" you meant the system you developed in VFP.
I don't know, and I hope someone else can help you.
In Windows, you can define a hotkey for a shortcut, but I don't think this is what you need.
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)