Disableing Right Click from a WebBrowser Inside VB6

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
GRPsuper
Forum Newbie
Posts: 18
Joined: Fri Apr 14, 2006 9:47 pm

Disableing Right Click from a WebBrowser Inside VB6

Post 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?
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post 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'
GRPsuper
Forum Newbie
Posts: 18
Joined: Fri Apr 14, 2006 9:47 pm

Post by GRPsuper »

where would i find oncontextmenu tho?
GRPsuper
Forum Newbie
Posts: 18
Joined: Fri Apr 14, 2006 9:47 pm

Post by GRPsuper »

well, if anyone else has more suggestions, plz feel free to post them cuz i kinda need it soon lol ;).


ighty, thanks
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

will you have control of the pages they are going to view in the browser?
GRPsuper
Forum Newbie
Posts: 18
Joined: Fri Apr 14, 2006 9:47 pm

Post 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
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post 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).
Post Reply