Results 1 to 13 of 13

Thread: [RESOLVED] How to set focus to "Find" form created by WebBrowser control?

Threaded View

  1. #12

    Thread Starter
    Junior Member
    Join Date
    Feb 2015
    Posts
    29

    Re: How to set focus to "Find" form created by WebBrowser control?

    Hmm. Interesting...

    I use IE 11 on Windows 7. What is your environment?

    Regarding If (GetAsyncKeyState(vbKeyControl) = 0 Or GetAsyncKeyState(vbKeyF) = 0). Possible here is some simple misunderstanding: I use this condition to focus to WB. Indeed, if there is no key press or pressed not Ctrl+F then app sets focus to WB control. If both keys are pressed (i.e. GetAsyncKeyState(vbKeyControl) <> 0 AND GetAsyncKeyState(vbKeyF) <> 0) then app does not set focus back to WB. In another words code detects not the case when Ctrl+F is pressed, but when it is NOT pressed, because I need to set focus to WB to allow scrolling without clicking. It is in my code above.
    Last edited by ma14; May 12th, 2016 at 03:06 PM.

Tags for this Thread

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