>If you're using menu with Top-Level form (as posted code indicates) you have to check Top-Level form check box for that menu in the Menu Designer -> View -> General options.
>
>Hi Sergey:
>I did as you suggested above. Now with the do menu2.mpr code in the main.prg (before the do form xxx), I get the message "menu can only be called from a top-level form. Ensure that your form's ShowWindow property is set to 2". I get the same message if I put the do menu2.mpr code in the form's INIT.
>Just for the record, I DO have the form's ShowWindow property set to 2 (top level).
It has to be called from the form's Init
do menu2.mpr WITH this
--sb--