disabling right click in web browser
-
Hi, How i can disable right click in web browser in vb.net project please give me an idea if any one have Thanks, Bye
It has nothing to do with VB.NET, the only code that runs on a browser is javascript. It's annoying when sites do it, but if you google, you're bound to find examples of jscript code for killing right click.
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
-
Hi, How i can disable right click in web browser in vb.net project please give me an idea if any one have Thanks, Bye
Assuming it is the Internet Explorer web browser that you have embedded into your form/project, you can disable the right-click context menu by setting the WebBrowser property
IsWebBrowserContextMenuEnabled
toFalse
. I hope this helps, Regards,Martin