Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

HOWTO : Add sub-menus/multi-level menus to a context menu extension developed using EZShellExtensions.Net

 
Subscribe to the RSS feed for this forum  Forum Index -> EZShellExtensions.Net
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Mon Nov 06, 2006 8:28 am    Post subject: HOWTO : Add sub-menus/multi-level menus to a context menu extension developed using EZShellExtensions.Net

To add multi-level menu entries in a context menu extension, you should use the HasSubMenu property of ShellMenu. Use the following code in the OnGetMenuItems method override of your ContextMenuExtension derived class :

ShellMenuItem parent = e.Menu.AddItem("Parent menu item");
parent.HasSubMenu = true;

parent.SubMenu.AddItem("Sub menu item 1");
parent.SubMenu.AddItem("Sub menu item 2");
Back to top
Display posts from previous:   
Forum Index -> EZShellExtensions.Net All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group