How do you override the ContextMenu that appears when right clicking on winforms WebBrowser Control?
问题 When you right click on WebBrowser control, the standard IE context menu with options such as "Back", "View Source", etc. appears. How do I make my own ContextMenuStrip appear instead? WebBrowser.ContextMenuStrip doesn't work for this Control. 回答1: A lot of the other solutions on this site made it sound like this was very difficult to do because it was a COM object... and recommended adding a new class "ExtendedWebBrowser". For this task, it turns out to be pretty simple. In your code which