Results 1 to 3 of 3

Thread: No response while processsing

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    If you are using a progress bar, this suggests a loop. If this is the case then you can use "DoEvents".

    This will cause the loop to yeild processor time to other tasks that the computer needs to do. Minimizing and Maximizing are such events. The form needs to get repainted etc, which will not happen if you are looping, unless you use DoEvents.

    Be careful of DoEvents though as it can slow down loop processes. It may be worthwhile using a counter so that DoEvents is only called once every so many times around the loop.

    Code:
    While notDone
      'do task
      lCount = lCount + 1
      
      'Only do DoEvents every ten times around the loop
      If lCount Mod 10 = 0 Then
        DoEvents
      End If
    Wend
    Hope this helps.
    Iain, thats with an i by the way!

  2. #2
    New Member
    Join Date
    May 2000
    Posts
    1

    Thanks

    Thanks Iain , It solved my problem.

    Arun Deep

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658

    Thumbs up

    No worries mate
    Iain, thats with an i by the way!

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