Tutorials Navigation

Tutorials :: New :: Popular :: Top Rated

Tutorials: 18,326 Categories: 12

Total Tutorial Views: 41,400,995

[VB.NET] Log Into a Site With Your Application

Tutorial Name: [VB.NET] Log Into a Site With Your Application  

Category: PC Tutorials

Submitted By: Maj

Date Added:

Comments: 0

Views: 620

Related Forum: PC Building Forum

Share:

Hello TTG,

This tutorial will teach you step by step on how to type into a websites textbox and click the submit / login button!!

Step 1. Add a button & webbrowser to your form
[ Register or Signin to view external links. ]


Step 2. Find the element ID of the textbox / textboxes & login button, to do so right click on the first textbox and click 'Inspect Element', now look for ID. Make note of this & now repeat the step for the other textbox & the button
[ Register or Signin to view external links. ]
[ Register or Signin to view external links. ]
[ Register or Signin to view external links. ]


Step 3. Double click your button now add the code:

 Webbrowser1.document.getelementbyid("textbox1idhere").setattribute("
value", "text to write here")
Webbrowser1.document.getelementbyid("textbox2idhere").setattribute("value&
quot;, "text to write here")
Webbrowser1.document.getelementbyid("buttonidhere").invokemember("submit&q
uot;)

Note: The 'submit' can vary for different sites, it may be "click" / "submit" / "post"

[ Register or Signin to view external links. ]


Step 5. Debug your application & test it out!! To debug press F5

All done!! You have successfully created an application that logs into a site through your app! Well done

Ratings

Current rating: 1.00 by 1 user
Please take one second and rate this tutorial...

Not a Chance
1
2
3
4
5
6
7
8
9
10
Absolutely

Comments

"[VB.NET] Log Into a Site With Your Application" :: Login/Create an Account :: 0 comments

If you would like to post a comment please signin to your account or register for an account.