Click here to Skip to main content
13,445,901 members (41,665 online)
Rate this:
Please Sign up or sign in to vote.
See more:
i have implemented IDochostUihandler to disable right click in webbrowser control,i was able
to accomplish this task, but now tab and delete key is not working.So please any suggestion
will be very helpful. Thanks in advance
Posted 26-Feb-13 19:34pm
"Disable right click"? You can disable it only by using a single-key mouse or breaking a mouse. :-)
Do you mean disable a context menu? Why? Did you think about customer's rights?
Suren Rao 27-Feb-13 1:45am
disabling right click was required for our product, to make it more secure.according to msdn
IDochostUihandler was the solution to do so..

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I also implemented a webbrowser control myself, but by now this issue hasn't occured to me because I use the webcontrol mostly for displaying information and not really offering user interaction.

Anyway, as usual, it appears you have to implement an additional interface called IInputObjects.

See here[^]

and microsoft documentation[^]

I'm sorry I can't give an actual coding example but I guess it's something;)

(btw. are you using MFC or ATL? Because I used MFC and at least the Delete Key works for me, the Tab Key gets routed buy the MFC UI anyways so there's no way it can possibly affect the webcontrol:( )

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.180314.2 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100