Home All Groups Group Topic Archive Search About

Internet Transfer Control in Dot Net???

Author
9 Jul 2006 7:28 PM
gwhite1
I used to be able to easily transfer a file or web page off of a web
site to a flat file with the VB6 internet transfer control.

Does anyone know how to do this in Dot.NET 2005 VB? VB6 was so easy.

Thanks!!

Sheila

Author
9 Jul 2006 8:11 PM
Michel Posseth [MCP]
Well it is still easy but totally different as in VB6


in .Net you can create a webclient like this
<imports>
Imports System
Imports System.IO
Imports System.Net

<Code>
Dim URI As String = "http://www.google.com"

Dim wbClient As new WebClient
Dim strData As Stream = client.OpenRead(URL)
Dim sr As StreamReader = New StreamReader(data)


see the overloads for more options ( like sending data as a post etc )

regards


Michel Posseth [MCP]









<gwhi***@kc.rr.com> schreef in bericht
Show quoteHide quote
news:1152473314.026540.288930@35g2000cwc.googlegroups.com...
>I used to be able to easily transfer a file or web page off of a web
> site to a flat file with the VB6 internet transfer control.
>
> Does anyone know how to do this in Dot.NET 2005 VB? VB6 was so easy.
>
> Thanks!!
>
> Sheila
>