VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Disable Right Mouse Click in Webbrowser Control

Chris Bint  (1 Submission)   Internet/HTML   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

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.

Assumes
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.

Rate Disable Right Mouse Click in Webbrowser Control (5(5 Vote))

Download Disable Right Mouse Click in Webbrowser Control

Disable Right Mouse Click in Webbrowser Control Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters