SCREEN=ON _GENMENU="C:\Arquivos de programas\Microsoft Visual FoxPro 9\GENMENUX.PRG" _HIDE="ON" *:HIDE="ON" _AUTORUN="ON">Instead of GenMenu, use GenMenuX http://www.aksel.com/genmenux/ to generate the .mpr code. It lets you hide menu options at runtime based on conditions.