We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How can I use only PART of the Edit Control's Context Menu?

Thread ID:





104713 Aug 11,2012 04:57 PM UTC Aug 16,2012 09:34 AM UTC WinForms 1
Tags: EditControl
David Wier
Asked On August 11, 2012 04:57 PM UTC

To keep from having to write my own custom context menu -
Is there a way to only use certain items in the built-in context menu?
For instance, if I don't want "Advanced", "Bookmarks" and "options" to appear, and only show 'Edit' and 'File' - how would I do that?

Selva Ganapathy Kathiresan [Syncfusion]
Replied On August 16, 2012 09:34 AM UTC

Hi David,

Thanks for your interest in Syncfusion products.

You can achieve the requirement by using the following code snippets

Dim cm As ContextMenuManager = CType(sender, ContextMenuManager)

' To clear default context menu items
' Add a separator

' Add custom custom context menu items and their Click eventhandlers
cm.AddMenuItem("&Find", New EventHandler(AddressOf ShowFindDialog))
cm.AddMenuItem("&Replace", New EventHandler(AddressOf ShowReplaceDialog))
cm.AddMenuItem("&Goto", New EventHandler(AddressOf ShowGoToDialog))

I have attached the sample as per your requirements in the following link. Please run the sample and let us know if it helps you.


Please let me know if you have any concerns.


Selva Ganapathy K


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon