Page 1 of 1

Disableing Right Click from a WebBrowser Inside VB6

Posted: Thu Jul 20, 2006 11:23 am
by GRPsuper
does anyone here know a code that would disable the option to right click on a webbrowser inside my prog? for instance, i added a webbrowser to my vb6 application, but i dont want users to be able to right click on that webbrowser. anyone got ne ideas or codes?

Posted: Thu Jul 20, 2006 11:26 am
by Burrito
I don't see why this wouldn't work in a web browser object embedded within a vb app....have a look at 'onContextMenu'

Posted: Thu Jul 20, 2006 11:30 am
by GRPsuper
where would i find oncontextmenu tho?

Posted: Thu Jul 20, 2006 11:58 am
by GRPsuper
well, if anyone else has more suggestions, plz feel free to post them cuz i kinda need it soon lol ;).


ighty, thanks

Posted: Thu Jul 20, 2006 12:02 pm
by Burrito
will you have control of the pages they are going to view in the browser?

Posted: Thu Jul 20, 2006 12:10 pm
by GRPsuper
no. but it wouldn't really matter. i just made it navigate to "about:blank" and now all i want to do is disable their right click on the webbrowser. it wouldn't matter if they have control of navigating it or not. atleast, i dont think. but i made it navigate to about:blank

Posted: Thu Jul 20, 2006 1:13 pm
by Burrito
I was thinking if you had control of the pages, you could use the onContextMenu event to disable a right click. If you don't then you'll have to use something else (vb wise).