But he want's an interface.
--
Randy Birch
MVP Visual Basic
http://vbnet.mvps.org/
Please respond only to the newsgroups so all can benefit.
"Slaatje" <So******@mail.com> wrote in message
news:c6**********@reader08.wxs.nl...
: Private Declare Function URLDownloadToFile Lib "urlmon" Alias
: "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal
: szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As
: Long
: Public Function DownloadFile(URL As String, LocalFilename As String) As
: Boolean
: Dim lngRetVal As Long
: lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0)
: If lngRetVal = 0 Then DownloadFile = True
: End Function
: Private Sub Form_Load()
: 'example by Matthew Gates (Pu*****@hotmail.com)
: DownloadFile "http://www.allapi.net", "c:\allapi.htm"
: End Sub
:
:
:
: S.W. Rasmussen heeft geschreven in bericht
: <40*********************@dread11.news.tele.dk>.. .
: >Handling file downloading with Randy Birch very nice code
: >(
http://vbnet.mvps.org/code/internet/...ledownload.htm)
: >raises a second question:
: >
: >I my case, the user should not be allowed to change the save destination
: for
: >the downloaded file. Does anyone know if it is possible to circumvent the
: >save dialogbox, for example by hiding it, or by auto-clicking the save
: >command button on the dialogbox closing the box with the destination path
: >without user intervention?
: >
: >Cheers, Soeren
: >
: >
:
: