Working with the Web Browser Control

N

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.
 
C

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
 

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