Link to home
Start Free TrialLog in
Avatar of lincstech
lincstech

asked on

Navigate to website in internet explorer

Hello,

I'm trying to create a app which I can store my usernames and passwords, and be able to navigate to that website using internet explorer, enter credentials and hit login. So far I've achieved this code however, it's using the webbrowser control in vb.net. can anyone help me with this code to use internet explorer.

   
Private Sub Login_Click(sender As Object, e As EventArgs) Handles Login.Click

        'Enter credencials
        WebBrowser1.Document.GetElementById("userid").SetAttribute("value", Username.Text)
        WebBrowser1.Document.GetElementById("pass").SetAttribute("value", Password.Text)

        WebBrowser1.Document.GetElementById("sgnBt").InvokeMember("Click")
    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        'Navigate to webiste
        WebBrowser1.Navigate("https://signin.ebay.co.uk/ws/eBayISAPI.dll?SignIn")
    End Sub

Open in new window

Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Avatar of lincstech
lincstech

ASKER

Still stuck
The WebBrowser control is IE, AFAIK. Anyway, if the login works, why change anything? Which difference do you see?
On which platform do you want to run your application?
vb.net 2013
ASKER CERTIFIED SOLUTION
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial