Results 1 to 4 of 4

Thread: How to downloa a file ?

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2002
    Posts
    60

    Exclamation How to downloa a file ?

    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 !!!
    Martin

  2. #2
    Addicted Member
    Join Date
    Aug 1999
    Posts
    164
    PHP Code:
    Dim myWebClient As New WebClient()

    myWebClient.DownloadFile(myWebDocumentURLmyLocalFilename
    -Shurijo

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2002
    Posts
    60

    RESOLVED - Thanks !!

    WOW !!
    Thanks !!!

    I only had to change it to:

    Dim mywebClient as new system.net.webclient()

    Thanks again !
    Martin

  4. #4
    Fanatic Member Geespot's Avatar
    Join Date
    Oct 2001
    Location
    Birmingham, UK
    Posts
    577

    Re: RESOLVED - Thanks !!

    Originally posted by sogtulakk
    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 namespace

    at the very very top of your code just add this line

    VB Code:
    1. imports System.Net

    now you dont have to keep typing System.Net.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width