Heya! I can't test my suggestion right now, but here it goes - perhaps if you set the webbrowser control's Enabled property to false when you minimize the app, or if you wrap it with a container control and set the container's Enabled property to false, i guess it'll stop the script from stealing the focus. Set it back to true after the form's up and showing.
Hope it helps! - Leon On Mar 8, 4:53 am, coolvicki7 <[email protected]> wrote: > Hello everyone, > > In my vb .net application I load a web page through web browser > control automatically after few minutes. Now the problem is even if I > minimize the application, on auto refresh it shows up automatically > which is ofcourse annoying. > > After researching on this, I now know that a piece of javascript on > this page is responsible for such behaviour. > > How can I stop webbrowser control stealing the focus? Can anyone help > me in this? > > Thanks
