Welcome Guest Search | Active Topics | Sign In | Register

Removing "View source" from Context Menu Options
Softmedics
Posted: Thursday, January 8, 2015 7:16:13 PM
Rank: Newbie
Groups: Member

Joined: 1/8/2015
Posts: 1
Hello,

I am using WebControl / WebView in my vb.net application and need to permanently remove "View source" from all Context Menus. This should not only apply to the main WebView but also to all new web windows that users open as they use the application. I briefly checked BeforeContextMenu event but it didn't seem to be the right solution. Please help.

Thanks
eo_support
Posted: Thursday, January 8, 2015 7:59:30 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

BeforeContextMenu is the right event for that purpose. You can enumerate the existing menu to delete a specific menu item, or clear the default menu and create the context menu completely from scratch. See here for sample code on how to do that:

http://www.essentialobjects.com/doc/6/customize/context_menu.aspx

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.