-
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?
-
-
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.
-
So then you just do in the webbrowser control anywhere:
Code:
Form1.SetFocus
or
Text1.SetFocus
-
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.