|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Working with the Web Browser ControlDoes 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. 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. 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. > 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. >
Late Binding Issue
VB Net and ADOX DateTime conversion to Integer Component UI CAB Architecture Guide??? For Dummies Book? :-) Redrawing a part of a control What to do when GetDeviceCaps doesn't? VB 2005 Visual Styles problem Concurrency violation: the DeleteCommand affected 0 records vb.net Datagrid relationships Math question: Based on excel |
|||||||||||||||||||||||