Results 1 to 3 of 3

Thread: Progress Bar using Inet fot FTP transfer

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    1

    Unhappy

    I'm using the inet control that comes with VB6 and i am uploading files to an FTP site, i want to know how i can get enough infomation so i can make a progress bar.

    Thanks

  2. #2
    Lively Member
    Join Date
    Jan 1999
    Location
    India
    Posts
    85
    I tried the same thing while I worked with Inet control around 10 months back.
    This featuere is not available with the Inet control at that time.
    Instead I used the MabryFTP control which is much flexible and has a lot of useful methods and events.

    check out at http://www.mabry.com

    Ramdas

  3. #3
    Lively Member
    Join Date
    Jan 1999
    Location
    Karjalohja, Finland
    Posts
    123
    Try this example:

    Public Sub GetFtpFile()

    Inet1.Execute , "GET Text.txt C:\Temp\Text.txt"

    FileTransfer

    End Sub

    Public Sub FileTransfer()

    'ProgressBar1.Max = 35000
    ProgressBar1.Value = 0.05

    Do While Inet1.StillExecuting

    If ProgressBar1.Value < ProgressBar1.Max - 1 Then
    ProgressBar1.Value = ProgressBar1.Value + 0.05
    End If

    DoEvents

    Loop

    ProgressBar1.Value = ProgressBar1.Max

    End Sub

    - Dj4

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