How would I...

Discussion in 'Code Snippets and Tutorials' started by Noob, Dec 27, 2007.

  1. Noob

    Noob Newbie

    Joined:
    Aug 11, 2007
    Messages:
    17
    Likes Received:
    0
    How would i get vb2005 to visit a website?
     
  2. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    1st you need to get a wrapper here
    2nd Copy that code into a blank code file
    3rd Make a form and add a button
    4th Click on the button and add this code
    Code (Text):
    1. <div class="text" id="{CB}" style="font-family: monospace;"><ol><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">&nbsp;</li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">Dim wrapper as TCPwrapper</li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">wrapper.request("GET", siteName, Referer)</li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">&nbsp;</li></ol></div>
     
  3. Noob

    Noob Newbie

    Joined:
    Aug 11, 2007
    Messages:
    17
    Likes Received:
    0
    Is that wrapper only for the neopets site, because I'm looking for a wrapper that would go for any site
     
  4. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    Any site, the wrapper is an easier way to acess the .net tcp control, which is one of the ways you can have .net use the internet. Any site would work as long as it isn't using https, ssl.
     
  5. Pocketmonster

    Pocketmonster Level II

    Joined:
    Nov 20, 2007
    Messages:
    158
    Likes Received:
    0
    Hey skip just curios does that wrapper work for VB08? Is there one for 08?
     
  6. ricky92

    ricky92 Administrator
    Staff Member

    Joined:
    Nov 10, 2006
    Messages:
    1,866
    Likes Received:
    67
    The wrapper should still work, unless they changed old functions...
     
  7. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    it does since they needed to keep backwards compatibility. I have used a C# wrapper which uses the exact smae things in .net 3.5 aka 2008. Infact my ab was able to work with 3.5 so it should still work, and also you may want to learn a bit of threading so your program dosn't freeze when you go to a website
     
  8. turato

    turato Level III

    Joined:
    Aug 3, 2007
    Messages:
    408
    Likes Received:
    0
    Would I add a class to my current project then copy the TCPWrapper code?
     
  9. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    Yes you could, just clear ALL the code in the class first