Results 1 to 40 of 132

Thread: Download Files From Web With Progressbar

Threaded View

  1. #11
    New Member S-One's Avatar
    Join Date
    Jun 2008
    Posts
    11

    Re: Download Files From Web With Progressbar

    True True, thx for fast reply...
    i have put some check for URL that user type in...
    if user put http:// or if not, app will put...
    before that app report error... and user must type WHOLE url... and we know how users are )))))))))

    Code:
    in
        Private Sub cmdDownload_Click
            If Mid(txtURL.Text, 1, 7) <> "http://" Then
                Dim temp, http As String
                temp = txtURL.Text
                http = "http://"
                txtURL.Text = http & temp
            End If
    ------------- continue core
            'Download
            Try
                _Downloader = New WebFileDownloader
                _Downloader.DownloadFileWithProgress(txtURL.Text, txtDownloadTo.Text.TrimEnd("\"c) & GetFileNameFromURL(txtURL.Text))
            Catch ex As Exception
                MessageBox.Show("Error: " & ex.Message)
            End Try
        End Sub
    but i have one problem:
    i have form1, and on form1 i have button, when click form2 pop up...
    but if i close form1 form2 also will be closed... how can i make form2 stay?
    AND what is key word for checking IS FORM2 ACTIVE ? of IS FORM2 opened?

    thx
    SxOne
    Last edited by S-One; Jun 12th, 2008 at 08:33 AM.

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