Results 1 to 5 of 5

Thread: App stays in processes once closed

Hybrid View

  1. #1
    Addicted Member sigid's Avatar
    Join Date
    May 2006
    Location
    Massachusetts, USA
    Posts
    182

    Re: App stays in processes once closed

    Yep - anything that causes the main form to UNLOAD will cause that code to execute. Of course, I am ASSUMING that the "orphaned" form is the cause of your problem, and I may be wrong...

  2. #2
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: App stays in processes once closed

    in form unload ..

    VB Code:
    1. Do Until Forms.Count = 1
    2.     Unload Forms(Forms.Count - 1)
    3. Loop
    4.  
    5. Or ..
    6.  
    7. Dim Form
    8. For Each Form In Forms
    9.     Unload (Form)
    10. Next Form

    in form terminate..
    VB Code:
    1. unload me

    make sure you stop any timers also ..and close any other objects that maybe open ..

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