|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Error while using:WebBrowser1.Document.Forms(0).submit
Hi,
I am using a Webbrowser to open a Internet Site. And login to it by sending the values from the VB code. I submit the form for the same using, WebBrowser1.Document.Forms(0).submit There are multiple pages that have to be navigated and various forms to be submitted. When I use the above in one url, the form gets submitted and the next page is redirected. And from the new redirected page if I am trying to submit the form I get the Error:" Object Variable or with block variable not set". Can anybody let me know where I am going wrong..... Regards, Sanjanah |
|
#2
|
|||
|
|||
|
it is very easy to activate the submit button on the form in html document through visual basic form.
to avoid error from 'webbrowser1.document.form(0).submit', first you know the name of button and form of the html through the source code. after do the following: for example, the html form name is 'form1' and the submit button name is 'submit' and the webbrowser control (VB) name is 'webbrowser' then, webbrowser.document.form1.submit.click with regards, S.Saravanan M.Sc. Student in Chemistry Muthayammal College of Arts & Science Rasipuram, Namakkal - 637 408, India |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Error while using:WebBrowser1.Document.Forms(0).submit |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|