Results 1 to 3 of 3

Thread: Filling in a web page through code

  1. #1

    Thread Starter
    Lively Member feneck's Avatar
    Join Date
    Mar 2007
    Location
    Australia, Queensland, Gympie
    Posts
    85

    Exclamation Filling in a web page through code

    What I want to do, is be able to click a command button. And have the App input my user name and password and then submit.
    I have tried for a very long time now and cannot do it. Can someone PLEASE help me...

    This is what I have created so far...

    Code:
    Public Class Form1
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            WebBrowser1.Navigate("https://www.bigpond.com/mybigpond/default.asp")
        End Sub
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            WebBrowser1.Document.All(2).value = "My Email"
            WebBrowser1.Document.All(3).value = "My Password"
        End Sub
    End Class
    When run I get this error:
    Error 1 'value' is not a member of 'System.Windows.Forms.HtmlElement'.

    However, if I take 'value' out its...
    Error 1 Property access must assign to the property or use its value.


    And YES I have seen how to do this on the net, but for some reason it just will not work with the BigPond sight!
    Can someone please help me!!!

    REMEMBER TO RATE

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: Filling in a web page through code

    I have personally posted the code to do this many, many times, so you could try to search these forums. Instead of Value, use InnerText (or was it OuterText?)
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3

    Thread Starter
    Lively Member feneck's Avatar
    Join Date
    Mar 2007
    Location
    Australia, Queensland, Gympie
    Posts
    85

    Exclamation Re: Filling in a web page through code

    If anyone would be so kind as too please help me.
    I have done as Atheist has said, however mine dose not work. If anyone can get there App too fill in the login text box's on
    https://www.bigpond.com/mybigpond/default.asp
    this would be very much helpful.
    Thanks

    REMEMBER TO RATE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width