WebBrowser Control Issue

G

gary.hibbard

Hello,

I have a webbrowser control on a pretty simple form (txtAddress, btnGo,
WebBrowser1).

When going to Google w/ this browser control, the focus changes to
Google's search bar.

Without going in to a whole lot of detail as to WHY I don't want this
to happen, does anybody know if there is a way to prevent focus from
being placed on this search bar, or to move focus out of this search
bar and on to the HTML element of the page?

Thanks,
Gary Hibbard
 
C

Cor Ligthert [MVP]

Garry,

There are two webbrowsers, the AxWebbrowser from before Net 2.0 and the
Webbrowser class

I have not direct the answer for you , but I almost sure that your problem
should be solved different for this.

(AFAIK has Google has a little piece of JavaScript at the end to set the
focus on the search box)

You should be shure that there is nothing anymore downloading and than set
the focus.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top