Click here to Skip to main content
11,647,170 members (69,779 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++
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 26-Feb-13 19:34pm
Comments
Sergey Alexandrovich Kryukov at 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 at 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
good
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

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 webcontrolFrown | :( )
  Permalink  

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

  Print Answers RSS
0 jyo.net 500
1 F-ES Sitecore 360
2 DamithSL 335
3 OriginalGriff 322
4 CPallini 290
0 OriginalGriff 1,277
1 jyo.net 994
2 DamithSL 946
3 Sergey Alexandrovich Kryukov 853
4 CPallini 760


Advertise | Privacy | Mobile
Web02 | 2.8.150804.2 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2015
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