Articles in this section
Category / Section

How to create control based context menu?

1 min read

 

The following code snippet illustrates to create control based context menu.

C#

//Set ContextMenu property as ControlSpecific.

Menu1.ContextMenu =EContextMenuType.ControlSpecific;

//Set ContextControlID to the target control ID.

Menu1.ContextControlID = "Calendar1";

VB

'Set ContextMenu property as ControlSpecific.

Menu1.ContextMenu =EContextMenuType.ControlSpecific

'Set ContextControlID to the target control ID.

Menu1.ContextControlID = "Calendar1"

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied