|
-
May 12th, 2016, 02:56 PM
#12
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|