Progress Bar not moving ? (General questions)

by Maverick5 @, (7054 days ago)

Where do I use multiThreding to get this to work right ?
in vb.net...

Thanks,
Mav
[:smile:]

locked

Re: Progress Bar not moving ?

by Jasmine, (7053 days ago) @ Maverick5

Mav,

how about some code? What exactly doesn't work? Did you try to use Progress event?

locked

Re: Progress Bar not moving ?

by Maverick5 @, (7053 days ago) @ Jasmine

Public Sub Progress(ByVal Owner As WODPOP3COMLib.wodPop3Com, ByVal Position As Integer, ByVal Total As Integer) Implements WODPOP3COMLib.IwodPopClientNotify.Progress
Try
Dim frac As Integer
frac = Total / 8
Select Case Position
Case Is > frac * 1
PictureBox1.BackgroundImage = ImageList2.Images(1)
Case Is > frac * 2
PictureBox1.BackgroundImage = ImageList2.Images(2)
Case Is > frac * 3
PictureBox1.BackgroundImage = ImageList2.Images(3)
Case Is > frac * 4
PictureBox1.BackgroundImage = ImageList2.Images(4)
Case Is > frac * 5
PictureBox1.BackgroundImage = ImageList2.Images(5)
Case Is > frac * 6
PictureBox1.BackgroundImage = ImageList2.Images(6)
Case Is > frac * 7
PictureBox1.BackgroundImage = ImageList2.Images(7)
Case Is > frac * 8
PictureBox1.BackgroundImage = ImageList2.Images(8)
End Select
Catch ex As Exception
' ignore error
End Try
End Sub

locked

Re: Progress Bar not moving ?

by Jasmine, (7053 days ago) @ Maverick5

Mav,

is Position argument changing? Does Progress event get fired? Can you add one Console.WriteLine(Position.ToString) . Do you see it in output window?

If so - wodPop3 works :) I can't dive into your code to tell you why graph doesn't work...

locked

Re: Progress Bar not moving ?

by Maverick5 @, (7053 days ago) @ Jasmine

Thanks !

I will check one other possible thing that could be causing this !


Mav,

locked