mickn66
Well-known member
- Joined
- Nov 2, 2002
- Messages
- 53
I cant get this to work. I have a notifyicon in the systemtray. It has a context menu called mnuContextMenu, which is declared as public in a module.
I want to copy that context menu into another menu in a form, but whenever I try
MainMenu1.MenuItems.Add(iconny.ContextMenu.clonemenu())
OR
MainMenu1.menuitems.add(mnuContextMenu.clonemenu())
I am told that I cant do it because mnuContextMenu is "not accesable in this context because it is protected"
Like I said, its actually declared as public. Does anyone have any idea why this is happening and/or how I can copy the context menu of the notifyicon in the system tray to another menu on a form? Please help!
I want to copy that context menu into another menu in a form, but whenever I try
MainMenu1.MenuItems.Add(iconny.ContextMenu.clonemenu())
OR
MainMenu1.menuitems.add(mnuContextMenu.clonemenu())
I am told that I cant do it because mnuContextMenu is "not accesable in this context because it is protected"
Like I said, its actually declared as public. Does anyone have any idea why this is happening and/or how I can copy the context menu of the notifyicon in the system tray to another menu on a form? Please help!