Download a file : File Download « GUI Applications « VB.Net Tutorial





Imports System.Runtime.InteropServices


public class DownloadAFile
    Private Declare Function DoFileDownload Lib "shdocvw.dll" (ByVal lpszFile As String) As Integer

    Public Shared Sub Main

    Try
      DoFileDownload("www.java2s.com")
    Catch ex As Exception
      Console.WriteLine(ex.StackTrace.ToString())
    End Try

    
    End Sub

End Class










15.9.File Download
15.9.1.Download a file