Results 1 to 2 of 2

Thread: progress bar

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Posts
    1

    Post

    Thank you CarlosTheJackal, it's working now.

    [This message has been edited by samobb (edited 08-12-1999).]

  2. #2
    Member
    Join Date
    Feb 1999
    Location
    ,Mo,USA
    Posts
    36

    Post

    'one the progress has finished exit sub
    Heres the code i use,ive used it alot and its always worked.My browser is Webrowser1,and my Progressbar is pgb1

    Private Sub WebBrowser1_ProgressChange(ByVal_ Progress As Long, ByVal ProgressMax As Long)
    If pgb1.Value = pgb1.Max Then Exit Sub
    'Exit sub when page is loaded
    If ProgressMax = 0 Then Exit Sub
    'Fixes strange errors i sometimes get
    If Progress > ProgressMax Then Exit Sub
    'sets the Progress Bar max to the size of the webpage
    pgb1.Max = ProgressMax
    pgb1.Value = Progress
    End Sub
    Then:
    Private Sub WebBrowser1_DownloadBegin()
    'reset progressbar
    pgb1.Value = 0
    End Sub

    Thnx for your time,
    CarlosTheJackal

    [This message has been edited by CarlosTheJackal (edited 08-11-1999).]

    [This message has been edited by CarlosTheJackal (edited 08-11-1999).]

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