|
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
|
|
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!
|
|
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
|
|
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
|
|
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.
|
|