thanks for your help but I already tried it without any success.

by some more research, I have found that by overriding wndproc and not
processing certain messages will do the trick. Though it does not seem
to be the best way but will somewhat work for few cases.

On Mar 9, 5:55 pm, Leon <[email protected]> wrote:
> 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- Hide quoted text -
>
> - Show quoted text -

Reply via email to