title: How to capture context menu "view source" click in c# WebBrowser control?
body: <p>I am trying to intercept a click on the "view source" item on C# WebBrowser's context menu. The default click opens the web page's source in notepad, but I would like, to cancel the default action and open my own form with the source code in a RichTextBox, which is a part of the opening window.</p>
  
  <p>Thanks to Robert I managed to intercept opening right-clicked links in new tabs instead of new windows (<a href="https://stackoverflow.com/questions/1286746/open-link-in-new-tab-webbrowser-control"><a href="https://stackoverflow.com/questions/1286746/open-link-in-new-tab-webbrowser-control">Open link in new TAB (WebBrowser Control)</a></a>), but I was unable to capture the "view source" click.</p>
  
  <p>I would appreciate any advices and solutions to my problem.</p>
  
  <p>Thank you in advance :)</p>