Results 1 to 6 of 6

Thread: [RESOLVED] Help needed! DoEvents doesnt works

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member RS_Arm's Avatar
    Join Date
    Mar 2007
    Location
    Planet Earth
    Posts
    282

    Resolved [RESOLVED] Help needed! DoEvents doesnt works

    Hi.
    My app executes a function that takes a lot of time.
    Therefor, I created a form with a little animation made with 12 icons placed in a imagelist.
    Right before the execution of that function, I load that form.
    The form has a timer, so each 1/2 second it changes the image in the form icon and the image of image" object.

    Code:
    Private Sub Timer1_Timer()
    Me.SetFocus
    DoEvents
    
    Me.Refresh
    Me.Image1.Refresh
    i = i + 1
    Me.Image1 = Me.ImageList1.ListImages(i).Picture
    Me.Icon = Me.ImageList1.ListImages(i).Picture
    
    If i = 12 Then i = 1
    
    
    End Sub
    What happens is that I cant see the animation "running".
    In the mainForm I have this code:

    Code:
    '...
    FormWait.Show
    FormWait.SetFocus
    DoEvents
    verify = Generate.PS2(file)
    Unload FormWait
    '...
    Thanks
    Last edited by RS_Arm; May 21st, 2007 at 04:50 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width