Version

UseEditContextMenu Property

Determines whether the edit window will display the default context menu.
Syntax
'Declaration
 
Public Property UseEditContextMenu As Boolean
public bool UseEditContextMenu {get; set;}
Remarks

When set to false, the default value, the control will not display a context menu when right clicking upon the control unless the ContextMenu property has been explicitly set.

When set to true, the control will display the default context menu for a TextBox when right clicking upon the control, unless the ContextMenu property has been explicitly set.

Note: The UseEditContextMenu property is not applicable when the ContextMenu property has been explicitly set.

Example
Returns whether the control will display a context menu when the edit portion is right-clicked.

Private Function WillDisplayContextMenu() As Boolean

    '	If the UseEditContextMenu property is false, and the ContextMenu
    '	property has not been explicitly set, return false otherwise, return true
    If (Not Me.ultraCalendarCombo1.UseEditContextMenu And Me.ultraCalendarCombo1.ContextMenu Is Nothing) Then
        Return False
    Else
        Return True
    End If

End Function
private bool WillDisplayContextMenu()
{

	//	If the UseEditContextMenu property is false, and the ContextMenu
	//	property has not been explicitly set, return false; otherwise, return true
	if ( ! this.ultraCalendarCombo1.UseEditContextMenu &&
		 this.ultraCalendarCombo1.ContextMenu == null )
		return false;
	else
		return true;

}
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