vb6 WebBrowser Disable Right Click, Disable Context Menu on Right Click

This page is going to show you one line of code to disable the WebBrowser right click context menu (the menu that allows people to ‘view source’ etc.).

Assuming the name of your WebBrowser control is [WB]:

At the top of the module:

Then in the [WB_DocumentComplete]:

Then in the [mDoc_oncontextmenu]:

Don’t forget to clean up when done: