Results 1 to 5 of 5

Thread: Web Browser - Auto Fill In

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2009
    Posts
    34

    Web Browser - Auto Fill In

    I have some values in the registry to set the user name, I also have a web browser, How would i make the web browser auto fill in the user name field in the web page window on load?

  2. #2

    Thread Starter
    Member
    Join Date
    Nov 2009
    Posts
    34

    Re: Web Browser - Auto Fill In

    or how would i be able to send the username and password on window load? like to make it auto authenticate? Like usuly i make a webpage form and make it send threw a form, but is there a way to send the un and password like if you filled out the link?

  3. #3
    Addicted Member
    Join Date
    Aug 2002
    Location
    Belgium
    Posts
    167

    Re: Web Browser - Auto Fill In

    Do a forum search you will find the tread.
    it has been ask't before.

    Use the keyword: webpagemanipulation

    And there is also a sample project in the code section of the forum

  4. #4
    Addicted Member
    Join Date
    Nov 2009
    Posts
    146

    Re: Web Browser - Auto Fill In

    Code:
    WebBrowser1.Document.DomDocument.GetElementById("username").Value = TextBox1.Text
    the
    Code:
    "username"
    You must view the source to the page, Find the Username Textbox, Get the Id for it and then change it to the Id, Example for a vBulletin Forum Login would be...

    Code:
    WebBrowser1.Document.DomDocument.GetElementById("vb_login_username").Value = TextBox1.Text

  5. #5
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: Web Browser - Auto Fill In

    While Dcrew's answer would work, you can cute the code down a little bit using the .All property of the document:

    Code:
    WebBrowser1.Document.All("vb_login_username").Value = TextBox1.Text

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