Results 1 to 5 of 5

Thread: [VB.NET] Link Help

  1. #1
    utahclock's Avatar
    Joined
    Feb 2012
    Posts
    664
    Userbars
    3
    Thanks
    360
    Thanked
    377/198
    DL/UL
    122/0
    Mentioned
    89 times
    Time Online
    15d 16h 59m
    Avg. Time Online
    5m

    [VB.NET] Link Help

    where would I insert links to neopets to make the login and password text boxes work? this is what I have so far..

    Public Class Form1



    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load



    End Sub

    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click

    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

    End Sub

    Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged



    End Sub

    Private Sub TextBox2_TextChanged(sender As Object, e As EventArgs) Handles TextBox2.TextChanged

    End Sub
    End Class

  2. #2
    Zachafer's Avatar
    Joined
    Dec 2011
    Posts
    1,235
    Userbars
    11
    Thanks
    769
    Thanked
    1,466/678
    DL/UL
    98/0
    Mentioned
    512 times
    Time Online
    24d 13h 9m
    Avg. Time Online
    8m
    The provided code is written in VBNet, not VB6.

    A Neo login is a lot more complex then visiting a link. You have to send POST data to a URL, wait for the response, and then read the response. Once you have the response read, you have to check a few different things (HTTP Response code, cookies, redirection, successful login).

    Most of these actions are easily accomplished by a HTTPWrapper which you can find here: (you need an account to see links)

    I would recommend checking out LiveHTTPHeaders. I can't find a tutorial on this site so I'll probably write one soon

  3. #3
    utahclock's Avatar
    Joined
    Feb 2012
    Posts
    664
    Userbars
    3
    Thanks
    360
    Thanked
    377/198
    DL/UL
    122/0
    Mentioned
    89 times
    Time Online
    15d 16h 59m
    Avg. Time Online
    5m
    **smashes head agaisnt wall... all I get is blank boxes but it says code works.. I must be doing something wrong ?

  4. #4
    Zachafer's Avatar
    Joined
    Dec 2011
    Posts
    1,235
    Userbars
    11
    Thanks
    769
    Thanked
    1,466/678
    DL/UL
    98/0
    Mentioned
    512 times
    Time Online
    24d 13h 9m
    Avg. Time Online
    8m
    Quote Originally Posted by utahclock View Post
    **smashes head agaisnt wall... all I get is blank boxes but it says code works.. I must be doing something wrong ?
    What do you want to happen when you click Button1? Put this code in the Button1_Click Handler:
    Code:
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    MessageBox.Show("Button1 Clicked!")
    End Sub

  5. The Following User Says Thank You to Zachafer For This Useful Post:

    utahclock (06-02-2012)

  6. #5
    utahclock's Avatar
    Joined
    Feb 2012
    Posts
    664
    Userbars
    3
    Thanks
    360
    Thanked
    377/198
    DL/UL
    122/0
    Mentioned
    89 times
    Time Online
    15d 16h 59m
    Avg. Time Online
    5m
    thanks for the info zac, ill try adding this to the code tommorow, so in general If you have the correct coding the form 1 box will always be blank?

Posting Permissions

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