Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9168779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:42:26+00:00 2026-06-17T15:42:26+00:00

I am trying to log into Rueters.com through my VB.net program. So far my

  • 0

I am trying to log into Rueters.com through my VB.net program. So far my code works until I click the “Sign In” button. No errors occur, but it doesn’t log in either. What am I doing wrong? Thanks in advance for any help.

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    WebBrowser1.Navigate("https://commerce.us.reuters.com/login/pages/login/login.do?backUrl=http%3A%2F%2Fwww.reuters.com%2F&backParameterEncoded=false&source=portfolio&flow=PORTFOLIO&entry_source=registration")
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    WebBrowser1.Document.GetElementById("loginName").SetAttribute("value", "username")
    WebBrowser1.Document.GetElementById("password").SetAttribute("value", "password")

    Dim allelements As HtmlElementCollection = WebBrowser1.Document.All

    For Each webpageelement As HtmlElement In allelements

        If webpageelement.GetAttribute("class") = "button" Then

            webpageelement.InvokeMember("click")

        End If

    Next
End Sub

Sorry I forgot to include the HTML! Here it is:

<div class="label">
    Email</div>
  <div class="textfield">
    <input type="text" size="40" maxlength="100" name="loginName" value="username" />
  </div>
  <div class="label">
    Password</div>
  <div class="textfield">
    <input type="password" value="" size="40" maxlength="20" name="password" />
  </div>

  <div class="checkbox">
    <input type="hidden" value="true" name="flag" /> 
    <input type="checkbox" onclick="if(this.checked) this.form.flag.value='true'; else this.form.flag.value='false';" id="RememberCredentialsCBID" checked="checked" /> 
    <label class="label"  for="RememberCredentialsCBID">Remember me on this computer</label>
  </div>
  <div id="loginErr" class="label error">
  </div>  
  <div class="submit">
    <div class="button"><input type="image" src="/resources_v2/images/btn_sign_in.gif" />
  </div>
</div>
<div class="textfield">
       <a href="/login/restorePassword">Forgot your password?</a>
     </div>
  </form>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T15:42:27+00:00Added an answer on June 17, 2026 at 3:42 pm

    How about:

    WebBrowser1.Document.GetElementById("loginName").SetAttribute("value", "username")
        WebBrowser1.Document.GetElementById("password").SetAttribute("value", "password")
    
        Dim allelements As HtmlElementCollection = WebBrowser1.Document.All
    
        For Each webpageelement As HtmlElement In allelements
    
            If webpageelement.GetAttribute("type") = "image" Then
                If webpageelement.GetAttribute("src") = "https://commerce.us.reuters.com/resources_v2/images/btn_sign_in.gif" Then
    
                    webpageelement.InvokeMember("click")
    
                End If
            End If
    
        Next
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to log into a site and obtain the code back, but i'm
I am trying to log into facebook here is my code: <body> <form id=form1
I am trying to log into a reports system using java. So far, I
Somewhat inexperienced programmer here trying to write a program to log into my courses
I'm trying to log into a SQL Server database through ODBC (the DSN is
I'm trying to use a .Net WebBrowser control to log into a website and
I'm trying to write a Java program that can automatically log into Facebook. I've
Using Forms Authentication in ASP.NET MVC when trying to log back into a site,
Im trying to use DefaultHttpClient to log into xbox.com. I realize that you cant
I am trying to submit this webform and log into this site: https://www.kalahari.net/profile/pipeline/signin.aspx I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.