Progress Bar not moving ? - WeOnlyDo Discussion board

Progress Bar not moving ? (General questions)

by Maverick5, Tuesday, January 10, 2006, 09:50 (6892 days ago)

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

Thanks,
Mav
[:smile:]

Re: Progress Bar not moving ?

by wodSupport, Tuesday, January 10, 2006, 10:17 (6892 days ago) @ Maverick5

Mav,

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

Re: Progress Bar not moving ?

by Maverick5, Tuesday, January 10, 2006, 10:47 (6892 days ago) @ wodSupport

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

Re: Progress Bar not moving ?

by wodSupport, Tuesday, January 10, 2006, 11:16 (6892 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...

Re: Progress Bar not moving ?

by Maverick5, Tuesday, January 10, 2006, 11:29 (6892 days ago) @ wodSupport

Thanks !

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


Mav,