Dim mnu As Menu
..For Each mnu In main.Controls '设置菜单权限没有用云飞的.net菜单控件前可以通过的
现在用了云飞的.net菜单控件,执行到上面 For Each就说类型错误了
..For Each mnu In main.Controls '设置菜单权限没有用云飞的.net菜单控件前可以通过的
现在用了云飞的.net菜单控件,执行到上面 For Each就说类型错误了
[email protected]
[email protected]
#IF VB6 THEN
dim c as control
for each c in me.controls
if typeof c is menu then
........
end if
next
#ENDIF