Emanuele,
>Hi Herman!
>
>First of all ThanK you for the code.
No problem :-)
>
>But my problem is that the menu isn't the system menu, the menu is on a Top Level Form.
>
>Do you know some way to obtain the id from a user menu ?
I've tried to search the id using VFP API for an hour or so with no luck, hope someone can give you the answer. I only find the way through WINAPI. I can post the code if you still interesting. Also, by using WINAPI, I think you can do it from VFP
Regards
Herman