Progress Bar Code NeededNeed Help With Progress Bar Please
Page 1 of 1
8 Replies - 12009 Views - Last Post: 31 July 2008 - 03:59 PM
#1
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!!!!
Replies To: Progress Bar Code Needed
#3
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?
can't anyone do anything for themselves?
#4
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.
Refer to Jayman9's post for my continuation.
#5
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??
#6
Re: Progress Bar Code Needed
Posted 30 July 2008 - 12:55 AM
Sorry Everyone I wasn't Trying to come off like that.
No errors Just Does Not Work
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
#7
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.
2. Get rid of the progressbar visible lines.
This post has been edited by WayneSpangler: 30 July 2008 - 02:28 PM
#8
Re: Progress Bar Code Needed
Posted 30 July 2008 - 04:28 PM
#9
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
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote








|