How To Login To A Website Using Vb[Resolved]
Hi There :wave: I Am Trying To Learn Vb So I Was Thinking To Try To Make A
vb application That Will Login In To Website But I Have No Idea What To Do
for example I Have This Website www.ebharatgas.com I Want To Login To That Website From My application is it possible If Yes How?
Re: HowTo Login To A Website Using Vb
try like this, there are several other ways
vb Code:
Set wb = CreateObject("internetexplorer.application")
wb.navigate2 "http://www.ebharatgas.com/ebgas/pages/index.jsp"
Do Until wb.readystate = 4
DoEvents
' wb.Quit
Loop
wb.Visible = True
With wb.document.forms("login")
.all("wblogid").Value = "username"
.all("wbpasswd").Value = "pass"
.submit
End With
Re: HowTo Login To A Website Using Vb
Quote:
Originally Posted by
westconn1
try like this, there are several other ways
vb Code:
Set wb = CreateObject("internetexplorer.application")
wb.navigate2 "http://www.ebharatgas.com/ebgas/pages/index.jsp"
Do Until wb.readystate = 4
DoEvents
' wb.Quit
Loop
wb.Visible = True
With wb.document.forms("login")
.all("wblogid").Value = "username"
.all("wbpasswd").Value = "pass"
.submit
End With
Bro Thanks For The Reply But I Am Newbie Still I Did Try To use To Code But Wen I Run It nothing Opens No Error nothing Can U explain in detail or make a example source Please Please Please :confused:
Re: HowTo Login To A Website Using Vb
how did you run it?
i tested this, so i know it works, just as is
put the code in the click event of a command button or something
Re: HowTo Login To A Website Using Vb
thanks For The Help Bro I Made It To Work Thank You So Much
Re: HowTo Login To A Website Using Vb
well you have to do like, assuming username is the name of your textbox
WebBrowser1.Document.All("wblogid").Value = username.text