求助:无法调用菜单(烦)
我做了个封面表单,上面加了计时器(计时器代码如下),程序运行时有登陆表单,如果用户名密码正确就调用主控表单,主控表单就是本程序的操作界面上面有菜单和工具栏,但当用户名密码正确后进入时就显示“this menu can only be called from a top-level form ensure that your form's showwindow property is set to 2. read the header section of the menu's mpr file for more details”我翻译了下是“此菜单只能被称为从最高层的形式确保您形式的showwindow属性设置为2 。标题部分菜单中的平面文件的更多细节”不知道哪里弄错了,恳请大家帮忙。多谢!If a>=1
Do form 登录表单 to showform
This.enabled=.f.
If showform=.f.
Clear events
Release thisform
Else
do form 主控表单 name li
do xtmenu.mpr with li,.t.,.t.
thisform.release
Endif
Else
a=a+1
Endif