Solved

Navigate to website in internet explorer

Posted on 2014-02-06
7
292 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39839912
0
 

Author Comment

by:lincstech
ID: 39840168
Still stuck
0
 
LVL 70

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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
LVL 38

Expert Comment

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

Author Comment

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

Accepted Solution

by:
Gerwin Jansen, EE MVE 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

728 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