|119179||May 19,2015 09:48 AM UTC||May 22,2015 09:02 AM UTC||WinForms||3|
We would like to let you know that, the reported requirement can be achieved by handling the MenuFill event in EditControl and using the property named RemoveContextMenuItem from the ContextMenuProvider. Please refer the below code snippet to remove the default menu item from the context menu. We have prepared the sample for your reference and it can be downloaded from the following location.
void editControl1_MenuFill(object sender, EventArgs e)
ContextMenuManager cm = (ContextMenuManager)sender;
//To Remove the File menu from the EditControl ContextMenu
Additionally please refer the below KB link to customize the ContextMenu items in EditControl.
Could you please check with the above solution and let us know whether the provided solution is helpful to achieve your requirement?
Please let us know if you need further assistance.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.