Exit the program

koure

Active member
Joined
Sep 23, 2008
Messages
27
Programming Experience
Beginner
Hi

I'm writing a program in vb.net 2005
I have and Exit button. In the click event I have the code Application.Exit(). When I press the Exit button the form disappears but the application is still running in background( I can find it from the processes under windows task manager)

Why is still running in background?

Thanks
 
Hi

I'm writing a program in vb.net 2005
I have and Exit button. In the click event I have the code Application.Exit(). When I press the Exit button the form disappears but the application is still running in background( I can find it from the processes under windows task manager)

Why is still running in background?

Thanks
What does your app do? Does your app do multi-threading?
 
JB's implication is the most likely explanation. If you are creating a Thread and not setting its IsBackground property to True before starting it then it will prevent your application exiting properly.
 
Back
Top