vb6 - How to read the content of the URL in vb 6.0 -
this question has answer here:
- download file - vb6 7 answers
- how query website in vb6? 3 answers
- alternative inet & webbrowser control retrieve html only? 4 answers
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
Post a Comment