Progress Bar Code Needed

Need Help With Progress Bar Please

Page 1 of 1

8 Replies - 13538 Views - Last Post: 31 July 2008 - 03:59 PM Rate Topic: -----

#1 sbh  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 23-July 08

Progress Bar Code Needed

Posted 29 July 2008 - 02:20 PM

I need a good, fast working (if possible), Progress Bar Code for my Web Browser. I need it as fast as anyone can help and I don't care who helps me. Thank You to anyone willing to Help!!!! :D :D

Is This A Good Question/Topic? 0
  • +

Replies To: Progress Bar Code Needed

#2 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 418
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: Progress Bar Code Needed

Posted 29 July 2008 - 06:01 PM

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

#3 jjsaw5  Icon User is offline

  • I must break you
  • member icon

Reputation: 90
  • View blog
  • Posts: 3,059
  • Joined: 04-January 08

Re: Progress Bar Code Needed

Posted 29 July 2008 - 06:43 PM

Give me give me give me,

can't anyone do anything for themselves?
Was This Post Helpful? 0
  • +
  • -

#4 Locke  Icon User is offline

  • Sarcasm Extraordinaire!
  • member icon

Reputation: 520
  • View blog
  • Posts: 5,596
  • Joined: 20-March 08

Re: Progress Bar Code Needed

Posted 29 July 2008 - 06:57 PM

I'm willing to HELP, not DO...

Refer to Jayman9's post for my continuation.
Was This Post Helpful? 0
  • +
  • -

#5 Damage  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 27
  • View blog
  • Posts: 1,079
  • Joined: 05-June 08

Re: Progress Bar Code Needed

Posted 29 July 2008 - 08:43 PM

Quote

I don't care who helps me


What possible reasons could you have for discriminating against someone who's trying to help you??
Was This Post Helpful? 0
  • +
  • -

#6 sbh  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 23-July 08

Re: Progress Bar Code Needed

Posted 30 July 2008 - 12:55 AM

Sorry Everyone I wasn't Trying to come off like that.

Private Sub Form1_ProgressChanged(ByVal sender As Object, _
    ByVal e As System.Windows.Forms.WebBrowserProgressChangedEventArgs) Handles WebBrowser1.ProgressChanged
On Error Resume Next
        If Progress = -1 Then ToolStripProgressBar1.Value = 100
        ToolStripStatusLabel1.Text = "Done"
        ToolStripProgressBar1.Visible = False
        ToolStripProgressBar1.Visible = True
        If Progress > 0 And ProgressMax > 0 Then
            ToolStripProgressBar1.Visible = True
            ToolStripProgressBar1.Visible = False
            ToolStripProgressBar1.Value = Progress * 100 / ProgressMax
            ToolStripStatusLabel1.Text = Int(Progress * 100 / ProgressMax) & "%"
        End If
 End Sub


No errors Just Does Not Work
Was This Post Helpful? 0
  • +
  • -

#7 WayneSpangler  Icon User is offline

  • D.I.C Head

Reputation: 22
  • View blog
  • Posts: 106
  • Joined: 22-March 08

Re: Progress Bar Code Needed

Posted 30 July 2008 - 02:26 PM

1. Get rid of On Error Resume Next. You will never find your error. Use Try:Catch.
2. Get rid of the progressbar visible lines.

This post has been edited by WayneSpangler: 30 July 2008 - 02:28 PM

Was This Post Helpful? 0
  • +
  • -

#8 Locke  Icon User is offline

  • Sarcasm Extraordinaire!
  • member icon

Reputation: 520
  • View blog
  • Posts: 5,596
  • Joined: 20-March 08

Re: Progress Bar Code Needed

Posted 30 July 2008 - 04:28 PM

View PostWayneSpangler, on 30 Jul, 2008 - 02:26 PM, said:

2. Get rid of the progressbar visible lines.


Definitely do that, you're just executing lines of code that are nullifying each other once the second one is executed.
Was This Post Helpful? 0
  • +
  • -

#9 coder411  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 30-July 08

Re: Progress Bar Code Needed

Posted 31 July 2008 - 03:59 PM

You could also try this code, it's simple but works.

Private Sub Form1_ProgressChanged(ByVal sender As Object, _
    ByVal e As System.Windows.Forms.WebBrowserProgressChangedEventArgs) Handles WebBrowser1.ProgressChanged
        If e.CurrentProgress < e.MaximumProgress Then
            If ToolStripProgressBar1.Value >= ToolStripProgressBar1.Maximum Then
                ToolStripProgressBar1.Value = ToolStripProgressBar1.Minimum
            Else
                ToolStripProgressBar1.PerformStep()
            End If
        Else
            ToolStripProgressBar1.Value = ToolStripProgressBar1.Minimum
        End If
    End Sub

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1