property ExFolderView.EnableShellMenu as Boolean
Enables or disables the control's context menu.

TypeDescription
Boolean A Boolean expression that indicates whether the control provides a drop down context menu.
The control provides a drop down context menu, if the EnableShellMenu property is True. Right clicking on a folder results in showing the folder's context menu. If some item from this menu is selected, the control fires a pair of events to notify your application about this event. Before the menu item is executed, BeforeShellMenuCommand event is fired. After the menu item is executed, the AfterShellMenuCommand event is fired. Please note that Windows OS is a multitasking environment. That means that execution of menu item does not mean that this event is fired after the executed program (or command) has finished. Rather, immediately after execution of the menu item this event is fired. Use the QueryContextMenu event to add new items to the folder's context menu. The CanRename property retrieves or sets a value indicating whether the control add Rename context menu.