Share via


ContextMenuEnabled Property

Topic Last Modified: 2006-11-30

The ContextMenuEnabled property specifies whether or not the folder context menu is enabled. The default value is True. The ContextMenuEnabled property applies to the ExchangeTreeViewControl Class.

Syntax

Property ContextMenuEnabled As Boolean
bool ContextMenuEnabled

Remarks

If the value is set to True, then the folder context menu will appear when a user right-clicks a folder node in the TreeView control. This is the default value.

If the value is set to False, then the folder context menu will not appear when a user right-clicks a folder node in the TreeView control.

Example

In the following Visual Basic .NET example, the ContextMenuEnabled property is set to False, disabling the folder context menu.

myTreeViewControl.ContextMenuEnabled = False

In the following C# example, the ContextMenuEnabled property is set to False, disabling the folder context menu.

myTreeViewControl.ContextMenuEnabled = False;