|
-
Jul 26th, 2002, 03:54 AM
#1
Thread Starter
Fanatic Member
Webbrowser accelerator keys
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.
 Looking for a friendly intelligent chat forum? Visit the white-hart.net 
-
Jul 26th, 2002, 04:02 AM
#2
Retired VBF Adm1nistrator
You could use a keyboard hook
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jul 26th, 2002, 04:06 AM
#3
Thread Starter
Fanatic Member
Originally posted by plenderj
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?
Thanks
 Looking for a friendly intelligent chat forum? Visit the white-hart.net 
-
Jul 26th, 2002, 04:08 AM
#4
Retired VBF Adm1nistrator
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
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jul 26th, 2002, 04:10 AM
#5
Hyperactive Member
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
-
Jul 26th, 2002, 09:27 AM
#6
Thread Starter
Fanatic Member
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
So far the ones I see need a separate DLL - is that the case with the ones that you used?
 Looking for a friendly intelligent chat forum? Visit the white-hart.net 
-
Jul 26th, 2002, 11:35 AM
#7
Thread Starter
Fanatic Member
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
 Looking for a friendly intelligent chat forum? Visit the white-hart.net 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|