Question by Number 47: How do you disable right click in web browser control in visual basic?
I have a web browser window in my form and want to be able to disable the right mouse button event. Is that possible? Like when I click directly on the page in the browser, a message comes up and closes the form? I am using VB 2008.Können you also explain where you put the code, I’m a noob. Thanks
Best answer:
Answer by Nick
It’s been awhile since I’ve played with VB, so this may or may not work.
You want to go to the even “right mouse down” for the object that contains the webpage.
This is the part that I am not sure if it’ll work, put this code in that event:
Cancel = 1
Know better? Leave your own answer in the comments!
RSS Feed
Twitter
Posted in
Tags: