Click to See Complete Forum and Search --> : i want to get the source code for a webpage in vb
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!
Mark Sreeves
Jan 12th, 2000, 05:22 PM
What exactly do you mean by source code?
------------------
Mark Sreeves
Analyst Programmer
Mark.Sreeves@Softlab.co.uk
A BMW Group Company
B4
Jan 12th, 2000, 07:45 PM
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
Mohammed
Jan 13th, 2000, 12:03 AM
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
the error i get from this says coInitialization has not been called, an idea what this means?
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?
how exactly would i use winsock to do this?
Mohammed
Jan 14th, 2000, 07:42 PM
Set the text box multiline to true, and scrollbars to 2, and resize the text within your form.
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
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.