views:

1095

answers:

3

How do I disable the context menu in the IE WebBrowser control and instead perform custom handling of the right-click event in C#?

+2  A: 
AddHandler Me.WebBrowser1.Document.ContextMenuShowing, AddressOf WebContextMenuShowing

I litterally copied your question and worked my google-fu on it...

This was on the first result page :-P

SchizoDuckie
Thanks, I'll put in C# form
Jen
+2  A: 
Jen
+1  A: 

Actually:

WebBrowser browser;
browser.IsWebBrowserContextMenuEnabled = false;

This pretty much tells the WebBrowser that the right-click context menu is not welcome.

Paulo Santos