Welcome Guest Search | Active Topics | Sign In | Register

ProgressBar Item_Click Event Options
Brian Ford
Posted: Saturday, March 19, 2011 9:20:13 AM
Rank: Member
Groups: Member

Joined: 8/5/2010
Posts: 16
Hi,

I'm hoping I'm just missing something silly here.

I am trying to use your Progressbar control, and I have assigned a button on my page to the StartTaskButton property.

in your example code you have the event...

Private Sub ProgressBar_ItemClick(ByVal sender As System.Object,
ByVal e As EO.Web.ProgressTaskEventArgs) Handles ProgressBar1.ItemClick

<snip>

However, I am not able to choose ItemClick event in my VB code page for the ProgressBar, what am I missing???

Thanks for your help



eo_support
Posted: Monday, March 21, 2011 9:18:56 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

ProgressBar does not have ItemClick event. Where do you see that in our sample code?

Thanks!
Brian Ford
Posted: Monday, March 21, 2011 10:08:47 AM
Rank: Member
Groups: Member

Joined: 8/5/2010
Posts: 16
In the On-Line documentation:

[Visual Basic]Private Sub ProgressBar_ItemClick(ByVal sender As System.Object,
ByVal e As EO.Web.ProgressTaskEventArgs) Handles ProgressBar1.ItemClick

Dim i As Integer
For i = 0 To 99
'Stop the task as soon as we can if the user has
'stopped it from the client side

If e.IsStopped Then
Exit For
End If

'Here we call Thread.Sleep just for demonstration
'purpose. You should replace this with code that
'performs your long running task.

System.Threading.Thread.Sleep(500)

'You should frequently call UpdateProgress in order
'to notify the client about the current progress

e.UpdateProgress(i)
Next i
End Sub
eo_support
Posted: Monday, March 21, 2011 2:11:40 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

That is not correct. Thanks for pointing it out. We will need to fix that. The name of the event is RunTask.

Thanks
Brian Ford
Posted: Monday, March 21, 2011 2:14:13 PM
Rank: Member
Groups: Member

Joined: 8/5/2010
Posts: 16
Phew, I thought I was going crazy :)

I will try that, thanks for your help.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.