Home All Groups Group Topic Archive Search About

Working with the Web Browser Control

Author
18 Aug 2006 4:10 PM
Nate
Does anyone know how to set focus to a web browser control so you can use
the command sendkey "{TAB}" and take within the web page itself.

webbrowser1.focus

doesn't seem to work.
I need to be able to click on a button on a web page.

Author
18 Aug 2006 7:08 PM
tommaso.gastaldi
Is that an aspx page that you can modify?

tommaso

Nate ha scritto:

Show quoteHide quote
> Does anyone know how to set focus to a web browser control so you can use
> the command sendkey "{TAB}" and take within the web page itself.
>
> webbrowser1.focus
>
> doesn't seem to work.
> I need to be able to click on a button on a web page.
Author
19 Aug 2006 12:38 PM
Chris M
webbrowser1.focus works OK for me, but doing this and using sendkey is a bad
idea, as you can lose focus and sendkey sends to the current application,
not the one that it is in so you have all sorts of problems.

You can do almost anything you want with a webpage directly with
webbrowser1.document




Show quoteHide quote
"Nate" <n***@hello.com> wrote in message
news:QDlFg.56028$vl5.49355@tornado.ohiordc.rr.com...
> Does anyone know how to set focus to a web browser control so you can use
> the command sendkey "{TAB}" and take within the web page itself.
>
> webbrowser1.focus
>
> doesn't seem to work.
> I need to be able to click on a button on a web page.
>
Author
22 Aug 2006 1:19 PM
Nate
The code was:

web23202.Document.forms(0).submit()

Nate

Show quoteHide quote
"Nate" <n***@hello.com> wrote in message
news:QDlFg.56028$vl5.49355@tornado.ohiordc.rr.com...
> Does anyone know how to set focus to a web browser control so you can use
> the command sendkey "{TAB}" and take within the web page itself.
>
> webbrowser1.focus
>
> doesn't seem to work.
> I need to be able to click on a button on a web page.
>