J
Jorge Cavalheiro
Hello
I am trying to browse thru all menuitens of contextmenus.
The form has 3 contextmenus.
mi and mi2 as menuitems, f is a form
For Each mi In f.ContextMenu.MenuItems
For Each mi2 In mi.MenuItems
Next
Next
I get an Object reference not set to an instance of an
object. The ContextMenu = nothing...
What am i doing wrong? It works fine with MainMenus.
Thanks!
Kind Regards
Jorge Cavalheiro
I am trying to browse thru all menuitens of contextmenus.
The form has 3 contextmenus.
mi and mi2 as menuitems, f is a form
For Each mi In f.ContextMenu.MenuItems
For Each mi2 In mi.MenuItems
Next
Next
I get an Object reference not set to an instance of an
object. The ContextMenu = nothing...
What am i doing wrong? It works fine with MainMenus.
Thanks!
Kind Regards
Jorge Cavalheiro