Results 1 to 9 of 9

Thread: i want to get the source code for a webpage in vb

  1. #1
    Guest

    Post

    Can anyone tell me how to get access to the source code of an internet page? By any means, through the web browser component or any other way. Thanks!

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    What exactly do you mean by source code?



    ------------------
    Mark Sreeves
    Analyst Programmer

    [email protected]
    A BMW Group Company

  3. #3
    Junior Member
    Join Date
    Dec 1999
    Posts
    22

    Post

    Text1.Text=Inet1.OpenURL("mywebsite.com")

    That uses the Internet Transfer Control, and loads the page source into a textbox. An alternative to this is using winsock and sending GET messages to the web server, then retrieving the data the webserver sends to you.

    -B4

  4. #4
    Junior Member
    Join Date
    Dec 1999
    Location
    Columbus, OH, USA
    Posts
    16

    Post

    Check vb-square.com, you will find the code that you looking for. All you have to do just change few detail.
    I hope that what you want.
    Mohammed

  5. #5
    Guest

    Post

    the error i get from this says coInitialization has not been called, an idea what this means?

  6. #6
    Guest

    Post

    the other problem is that my text box cant hold all of the source code, any ideas on what will hold all of it? or how to divide it up so i can put it in a text box?

  7. #7
    Guest

    Post

    how exactly would i use winsock to do this?

  8. #8
    Junior Member
    Join Date
    Dec 1999
    Location
    Columbus, OH, USA
    Posts
    16

    Post

    Set the text box multiline to true, and scrollbars to 2, and resize the text within your form.

  9. #9
    Guest

    Post

    I already tried that. It doesn't work. After i run it i get a coinitialization error and i can not cut or paste b/c i get an out of memory error and i cant save b/c of the coinitialization error.
    I am truly stumped

Posting Permissions

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



Click Here to Expand Forum to Full Width