Results 1 to 5 of 5

Thread: WebBrowser Control steals focus

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    28
    I have a WebBrowser Control on a form and the page is always changeing because of a Refresh Tag. So the page redirects every 5-10 seconds. If I'm resizing the form, or moving it around, or typeing in a textbox, the focus gets set to the Browser when the page changes.

    Is there a way to stop the WebBrowser Control from stealing the focus everytime it changes pages?

  2. #2
    Guest
    Try using this code:

    Code:
    WebBrowser1.Stop

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    28
    I tried placing that in the BeforeNavigate Event and it still steals the focus. I want the page to load, I just don't want the focus moving to the WebBrowser Control.

  4. #4
    Guest
    So then you just do in the webbrowser control anywhere:

    Code:
    Form1.SetFocus
    or
    Text1.SetFocus

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    28
    How am I supposed to know if the user is in the middle of resizing the form or typing in one of 50 textboxes? Among other things.

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