Version

ContextMenu Property

Returns or sets the ContextMenu that will be assigned to the control's ContextMenu property if the event is not canceled.
Syntax
'Declaration
 
Public Property ContextMenu As ContextMenu
public ContextMenu ContextMenu {get; set;}
Remarks

At the time the ContextMenuInitializing event is fired, the ContextMenu property returns the default context menu. A listener of the event can set this property to override this default context menu, and display a different one.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also