Using the Webbbrowser control and microsoft's Web browser customizer wbcustomizer.dll how can I turn off the control and alt keys (particularly ctrl-P) but still allow the shift key to work.
Printable View
Using the Webbbrowser control and microsoft's Web browser customizer wbcustomizer.dll how can I turn off the control and alt keys (particularly ctrl-P) but still allow the shift key to work.
You could use a keyboard hook
Hi Jamie! Can you actually hook the keyboard when using the webbrowser control? Can you direct me to some suitable code?Quote:
Originally posted by plenderj
You could use a keyboard hook
Thanks
Well if you're using a systemwide hook, you can hook anything.
(except for CTRL+ALT+DEL under an NT kernel)
I don't have any code samples to hand, but you can go through these pages :
http://www.google.com/search?hl=en&i...yboard+hook%22
hi,
i hd used hookin in my webbbrowser
well, i had one good example of keyboard hook.but lost the link as all my subscribed threads hv disappeared.Meanwhile,search on the forum,u will get good examples.
regds,
ashay
So far the ones I see need a separate DLL - is that the case with the ones that you used?Quote:
Originally posted by ashay
hi,
i hd used hookin in my webbbrowser
well, i had one good example of keyboard hook.but lost the link as all my subscribed threads hv disappeared.Meanwhile,search on the forum,u will get good examples.
regds,
ashay
What I'm looking for is more along the lines of a line to add to this to re-enable the shift keys
Code:Set CustomWB = New WBCustomizer
With CustomWB
.EnableAccelerator vbKeyN, False
.EnableAccelerator vbKeyO, False
.EnableContextMenus = False
.EnableAllAccelerators = False
Set .WebBrowser = frmSecureWebRenderer.brwWebBrowser
End With