|
-
Aug 23rd, 2012, 11:07 AM
#1
Thread Starter
New Member
Program runs in the Background when closed?
I used the Close() command on a button and the program is still open in the processes, even through it's closed. What code can I use to make it close and not run in the processes and completely exit?
-
Aug 23rd, 2012, 11:29 AM
#2
Re: Program runs in the Background when closed?
You have to make sure that you have properly terminated any threads and or objects you may have started.
-
Aug 23rd, 2012, 11:33 AM
#3
Re: Program runs in the Background when closed?
Check the project properties... on the Applications tab... there's an option for Shutdown mode ... it should be when the main form closes, or when all forms are closed, which ever is more appropriate... after that, you need to ensure that you're properly closing all your forms and/or other objects that maybe running... that's what is keeping the app going even after closing the form. Also hiding forms doesn't close them... it simply makes them hidden... so if you're hiding and forms, then they too may be part of the problem.
-tg
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|