Results 1 to 13 of 13

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

Threaded View

  1. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2015
    Posts
    29

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

    Thank you for reply. Actually you right. I realized that problem is in statement HTMLDOC.focus that occurs in HTMLDOC_onmousemove procedure. I added this statement to let user to scroll the WB page with mouse without initial clicking the WB control. It works fine. But when user clicks the Ctrl+F and "Find" window pops-up, the mouse pointer is still in WB and focus is switched back to WB control. Interesting that _onmousemove occurs in WB even if I do not move the mouse, just keep it inside the control.

    Additional problem is the _onkeyup procedure does not respond to Ctrl+F ! It somehow "reserved". The _onkeyup fires for "Ctrl" or "F" press and release, or for Ctrl+S etc. But not for Ctrl+F. As a result I can not detect the "Find" form presence, unless I use "FindWindow" API in _onmousemove or in Timer, what is resource consuming.

    Form_KeyUp is also not fired when I press Ctrl+F in WB control (even if Form.KeyPreview is true).

    Any suggestions or ideas?
    Last edited by ma14; May 12th, 2016 at 11:26 AM.

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