
Stopping right-click in WebBrowser Control
Peter,
Use the WBCustomizer.dll written by Scott Roberts of Microsoft. You can use it to block the IE popup menu. Then in the document object's click event, test for the right mouse button, cancel the event, then supply your own menu. I've used this technique for about six months with success.
Damon Darling
Windows Developer
Digital LAVA Inc.
10850 Wilshire Blvd.
Suite 1260
Los Angeles, CA 90024
310.470.1149 ext.112
310.470.1769 fax
www: www.digitallava.com
I have a form that includes the WebBrowser control. The client wants to stop people from being able to use the funtionality that the browser control provides through a popup menu when a user right-clicks in the browser control.
Is it possible to either dissable the right mouse button altogether in the VB app eg make the app think the right mouse button is the same as the left mouse button
OR
simply stop the popup menu from displaying when a user does right click.
Some suggestions so far are to hit the right mouse button with a hammer, super glue it in place, cut the wires that make the right mouse button function, ship the product with a single button mouse etc etc
Any suggestions greatly appreciated