Results 1 to 19 of 19

Thread: [RESOLVED]Trap Ctrl +N in VB Web Browser Control

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425

    Resolved [RESOLVED]Trap Ctrl +N in VB Web Browser Control

    Guys,

    I need to prevent a new IE window being opened when Ctrl +N (Equiv of selecting File -> New Window in IE) is pressed in the Web Browser control in my project. All other new window events are trapped using the NewWindow2 event, but according to MSDN a Ctrl+N keypress is not catchable using this method. Does anyone have any funkeh little code tricks that allow me to detect when Ctrl+N has been pressed and stop the web browser control from launching the new window?

    Thanks in Advance!!
    Last edited by Hack; Feb 7th, 2006 at 09:00 AM. Reason: Added green "resolved" checkmark

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