Results 1 to 4 of 4

Thread: Download a file from the Internet and show the status

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2002
    Posts
    95

    Post

    Hello,
    ------

    How can I download a file from the internet and also show the status of the file that im downloading? I want it to be exactly like im downloading a file from the internet using Internet Explorer or Netscape.

    Thanks in advance!!

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Sure thing. Try something like this:

    Code:
    Private Declare Function DoFileDownload Lib "shdocvw.dll" (ByVal lpszFile As String) As Long
    
    
    Private Sub Command1_Click()
       
       Dim strDownload As String
       
       strDownload = "http://www.MySite.com/myfile.zip"
       strDownload = StrConv(strDownload , vbUnicode)
       Call DoFileDownload(strDownload )
       
    End Sub
    This will show the IE's download dialog box.

  3. #3
    Lively Member
    Join Date
    Jan 1999
    Location
    Karjalohja, Finland
    Posts
    123

    Post

    Serge!!!

    Your example bring out Common Dialog("Save as").

    But I want automatically save file example App.Path folder and using same name.

    How I can do this??

    - Dj4

  4. #4
    New Member
    Join Date
    Feb 2000
    Posts
    7

    Post Downloading HTML page

    Hi there...

    I am working on a program that will open an internet connection, and based on the user's choice (via a dropdown combobox) go to the determined web page and also show the html source. The problem is that I have tried to display the source with a textbox and a richtextbox, and the source is not complete. Could it be that those components reached the maximum storage capacity and everything was 'truncated'? If so, how can I capture and display the source within my application?

    I'll apreciate any help.

    Sincerely,

    VBGuy74

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