Results 1 to 2 of 2

Thread: Closing everything

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Location
    England
    Posts
    135
    Hi,
    I have got a project which runs fine, except that something is still running when I exit the project ( this also happens with the .exe version of the project ). I have located the source of the problem, but no matter what I do, it won´t stop. Is there a way to stop, shut down, whatever everything when I unload the last form in the project?

    Any help gratefully accepted,
    Cheers,
    Sparky

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    Sort of depends what is going on. You can place this in the unload event of the form, or in a sub in a module.

    It may be a loop that i still running that is keeping your program going. A common thing with loops and DoEvents

    Code:
    Dim myForm as Form
    
    For Each myForm in Forms
      UnLoad myForm
      set myForm = Nothing
    Next
    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