vb6 - How to read the content of the URL in vb 6.0 -


i have command button in vb 6.0 ,now on clicking command button want read content of url(means url writing there).

code:

private sub command2_click() dim obj object set obj = createobject("internetexplorer.application")  obj.navigate2 "http://10.0.0.13/tuvrandom" obj.visible = true end sub 

it display content of page eg:"google" want read whole thing page writing.

private sub command2_click()     dim obj object      set obj = createobject("internetexplorer.application")      obj.navigate2 "http://10.0.0.13/tuvrandom"     obj.visible = true     while obj.busy or obj.readystate <> 4         doevents     wend      ' read document property want     ' text = obj.document.body.innerhtml end sub 

you can explore internet explorer object model here, http://msdn.microsoft.com/en-us/library/ms970456.aspx


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -