Disable Right Mouse Click in Webbrowser Control

By | 2002-06-01

Processes Mouse actions for Webbrowser Control enabling you to disable the action. This is an update due to requests from people that could not get it working. I have included a sample project to show it working.

Original Author: Chris Bint

Assumptions

This example code places a HOOK into the message queue. When a new message is received it runs the Function to check the parameters of the the message. If the parameters are the same as what we are searching for, we can then choose to let it carry on or cancel the message. Full source code for the example is included and comments are shown where I can

Side Effects

Application must be exited by closing the form. the Form_unload event UNHOOKS the hook. Your computer may become unstable if you do not follow this, even in the Visual Basic IDE.

Attachments

FileUploadedSize
CODE_UPLOAD314.zip9/3/2020 3:45:00 PM3202
Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.