PDA

Click to See Complete Forum and Search --> : Inet control


BitBlt
Nov 19th, 2000, 04:57 AM
How do u use the inet control to download a web page, all the tutorials i find for the inet seem to be for the ftp protocol only.

thnx

Nov 19th, 2000, 05:08 PM
Here you go:

Private Sub Command1_Click()

Text1.Text = Inet1.OpenURL("http://forums.vb-world.net", icString)
ReturnStr = Inet1.GetChunk(2048, icString)
Do While Len(ReturnStr) <> 0
DoEvents
Text1.Text = Text1.Text & ReturnStr
ReturnStr = Inet1.GetChunk(2048, icString)
Loop

End Sub