how read data from the internet.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rhbt63
    New Member
    • Feb 2007
    • 9

    how read data from the internet.

    Hi all. i am wondering if it is possible to read source code from the net using vb6.0 if so is it also possible to then change the url so that it accesses a separate page.

    any help will be greatly received.

    regards

    rab
  • iburyak
    Recognized Expert Top Contributor
    • Nov 2006
    • 1016

    #2
    1. Go to Project - Componets and check Microsoft Internet Control.
    2. Put Internet Control on your form.
    3. Execute code in some button.

    Example:

    [PHP]Call WebBrowser1.Nav igate2("www.goo gle.com")[/PHP]


    You can put some textbox on a form and enter URL and each time you click button it will change your page.

    [PHP]Call WebBrowser1.Nav igate2(Text1.te xt)[/PHP]

    Play with control it has much more.

    Comment

    • kZero
      New Member
      • Nov 2006
      • 23

      #3
      Originally posted by rhbt63
      Hi all. i am wondering if it is possible to read source code from the net using vb6.0 if so is it also possible to then change the url so that it accesses a separate page.

      any help will be greatly received.

      regards

      rab

      use msinet.ocx

      make text box

      Code:
       text1.text = inet.openurl("http://www.thescripts.com")
      you will get the page source in text1.text

      Comment

      • rhbt63
        New Member
        • Feb 2007
        • 9

        #4
        Originally posted by kZero
        use msinet.ocx

        make text box

        Code:
         text1.text = inet.openurl("http://www.thescripts.com")
        you will get the page source in text1.text

        thanks 2 u both for prompt replies will experiment and let u know how i get on.

        thanks again

        Comment

        Working...