Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi,
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
Comments
Sergey Alexandrovich Kryukov 27-Feb-13 1:38am    
"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?
—SA
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

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

http://go4answers.webhost4life.com/Example/tab-delete-keys-not-working-web-browser-69268.aspx[^]

and microsoft documentation

http://msdn.microsoft.com/en-us/library/windows/desktop/bb761804(v=vs.85).aspx[^]

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:( )
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900