Stopping right-click in WebBrowser Control 
Author Message
 Stopping right-click in WebBrowser Control

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



Sat, 07 Apr 2001 03:00:00 GMT  
 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



Fri, 13 Apr 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. disable right click of WebBrowser control

2. Capturing right click event of webbrowser control

3. WebBrowser Control and Right Mouse Click

4. WebBrowser control right click on place in text

5. Modify right click menu on webbrowser control

6. webbrowser control - right click link trouble

7. Right-click on the WebBrowser control

8. Reduce or remove the right click menu in the webbrowser control

9. Disable Right-Click on WebBrowser Control

10. Right click in WebBrowser Control

11. Answer: How to turn off right click functionality in the WebBrowser Control

12. Howto disable Right-click in Webbrowser control

 

 
Powered by phpBB® Forum Software