Solved

Navigate to website in internet explorer

Posted on 2014-02-06
7
286 Views
Last Modified: 2014-02-10
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

0
Comment
Question by:lincstech
7 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39839912
0
 

Author Comment

by:lincstech
ID: 39840168
Still stuck
0
 
LVL 68

Expert Comment

by:Qlemo
ID: 39846143
The WebBrowser control is IE, AFAIK. Anyway, if the login works, why change anything? Which difference do you see?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 37

Expert Comment

by:Gerwin Jansen
ID: 39847295
On which platform do you want to run your application?
0
 

Author Comment

by:lincstech
ID: 39847340
vb.net 2013
0
 
LVL 37

Accepted Solution

by:
Gerwin Jansen earned 500 total points
ID: 39847562
I understand that you're running your application on vb.net but if it's just about storing usernames/passwords for websites why not use an existing application like keypass for example? Such applications will store username/passwords for sites and based on page titles for example, let you hit a hotkey to autofill username/password and login.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now