>>>>>I'm not sure if this is the correct behavior or not but here is an interesting one.
>>>>>
>>>>>From Visual FoxPro, execute a form which is top level form. Then, go back to your Visual FoxPro environment. Define a right click menu. Right click. See what happens!
>>>>
>>>>What happens ? I couldn't see an unexpected behaviour.
>>>
>>>It brings up the top level form under the right click menu.
>>
>>Oh it's the expected behaviour. Active window is top level at that moment. ie: ? also outputs there. 'Activate screen' then launch menu and it's on screen.
>
>This is the part that I have a problem with. In the Windows task bar, I see the VFP window and the new top level form that has been launched by VFP. So, at first only the VFP window appears in the taskbar. Then, as soon as I run the form, I see another item in the task bar which is my top level form. I can go back to VFP and do some commands. However, doing a right click to activate a menu also activates the top level form which I don't expect.
In top level's deactivate 'activate screen' might help.
Cetin