Results 1 to 7 of 7

Thread: Webbrowser accelerator keys

  1. #1

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611

    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

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    You could use a keyboard hook
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    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

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    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]

  5. #5
    Hyperactive Member ashay's Avatar
    Join Date
    Feb 2002
    Location
    Mumbai,India
    Posts
    278
    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

  6. #6

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    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

  7. #7

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    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
  •  



Click Here to Expand Forum to Full Width