Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 03:45

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



VB.NET Loginsytsem

Discussion on VB.NET Loginsytsem within the .NET Languages forum part of the Coders Den category.

Reply
 
Old 08/29/2013, 13:16   #16
 
NastyTeaBag's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 1,481
Received Thanks: 257
B2t: wenn du nichtmal weist wie man neue Objekte einer Klasse erstellt dann rate ich dir dringend ein Buch zu kaufen oder es bleiben zu lassen.
NastyTeaBag is offline  
Old 09/08/2013, 08:58   #17
 
schneider1424's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 48
Received Thanks: 32
Post

i assume your trying to login to a website or forum etc.
to do you gonna have to use elements to your advantage the webbrowser control in the tool box will be your friend XD
ill use yourforum.com as example and also a simple review of what it should look like

Code:
'first thing first navigate to the forum or website
webbrowser1.navigate("yourforum.com")

'next double click one the webbrowser in the form designer to get document 'complete  event, something like this!

Private Sub WebBrowser1_DocumentCompleted(sender As Object, e As WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted

' in this tut we use elements to login to a website in the background

'you noticed "GetElementById("password")" in this case password is the id and how do we find it?

'first right click on the button or textbox on the and click inspect elements(chrome for this tut)

' if you see something like id="test" or name="testname" then test or testname is the id

        WebBrowser1.Document.GetElementById("username").InnerText = TextBox1.Text

'innertext gets the value of the textbox(not sure havnt tested yet :P)
        WebBrowser1.Document.GetElementById("password").InnerText = TextBox2.Text

' and in this one we raised and event which should click the button with the name "login"
        WebBrowser1.Document.GetElementById("login").RaiseEvent("click")
    End Sub
'you can use the above example to get the nickname of the user by simply using getelementbyid





Note this is just a simple overview if i gave you the direct answer the is no guarantee you will just copy and paste and learn nothing
crappy i know
schneider1424 is offline  
Reply




All times are GMT +2. The time now is 03:45.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.