Welcome Guest Search | Active Topics | Sign In | Register

progress bar - error in vb Options
bsly
Posted: Wednesday, March 16, 2011 12:25:45 PM
Rank: Newbie
Groups: Member

Joined: 3/16/2011
Posts: 1
I can't get the progress bar to work.

the vb code on this page (also shown below):
http://doc.essentialobjects.com/library/1/progressbar/action_server.aspx

returns an error for me :
"Handles clause requires a WithEvents variable defined in the containing type or one of its base types"


sample code:
Code: Visual Basic.NET
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


thanks,
in advance.

eo_support
Posted: Wednesday, March 16, 2011 12:30:06 PM
Rank: Administration
Groups: Administration

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

Please let us know if you have a license. We do not provide free tech support on our free controls unless you are already a paid user.

Thanks!


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.