Results 1 to 3 of 3

Thread: [RESOLVED] [02/03] how to allow user to cancel active loop

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    5

    Resolved [RESOLVED] [02/03] how to allow user to cancel active loop

    I want to allow the user to cancel a loop that is actively processing so I can return control to the main form.

    I have tried using a button event, but I haven't been able to get it handled until the loop has completed.

    Any help will be greatly appreciated. Thanks.

  2. #2
    Banned
    Join Date
    Nov 2005
    Posts
    2,367

    Re: [02/03] how to allow user to cancel active loop

    Welcome to VBF.

    Check out this link:
    http://www.vbforums.com/showthread.php?t=393648

    Post #5 looks closest to what you're after.

  3. #3
    Hyperactive Member
    Join Date
    Nov 2004
    Posts
    362

    Re: [02/03] how to allow user to cancel active loop

    if you do not want to use thread, try
    Application.DoEvents()

    in your loop.


    bear

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