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!
Printable View
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!
What exactly do you mean by source code?
------------------
Mark Sreeves
Analyst Programmer
[email protected]
A BMW Group Company
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
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?
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