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
|
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.aspxThanks!
|