WebBrowser Control Issue

  • Thread starter Thread starter gary.hibbard
  • Start date Start date
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
 
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
 
Back
Top