Hi every1 !!
How can I download a file with .NET ?
I know on VB6 there are lots of ways... INET, WebBroswer1, etc...
help ? please....
Thanx !!!
Printable View
Hi every1 !!
How can I download a file with .NET ?
I know on VB6 there are lots of ways... INET, WebBroswer1, etc...
help ? please....
Thanx !!!
PHP Code:Dim myWebClient As New WebClient()
myWebClient.DownloadFile(myWebDocumentURL, myLocalFilename)
WOW !!
Thanks !!!
I only had to change it to:
Dim mywebClient as new system.net.webclient()
Thanks again !
And the only reason why you needed to do that was because you havn't imported the system.net namespaceQuote:
Originally posted by sogtulakk
WOW !!
Thanks !!!
I only had to change it to:
Dim mywebClient as new system.net.webclient()
Thanks again !
at the very very top of your code just add this line
VB Code:
imports System.Net
now you dont have to keep typing System.Net.