Close my application already, but its instance still active in Tas

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an Exit button for my application. Within button_click event, I have
the following code.
me.dispose()
me.close()

After I click the button and the application is closed, but I still see an
active instance of the application on TaskManager. What else am I missing
from my code to ensure that the application is completely terminated? By the
way, I do not even know the differences between Close and Dispose methods?
Could someone please explain me too? THANK YOU so much for your time. Have
a great day!
 
Reverse the calls. First Close(), then Dispose().
You might want to read the documentation on these two methods.

Martin
 
I tried as suggested, but the instance o fmy application is still active in
TaskManager. How, I also tried using "application.exit()", and it worked out
as I wished. Thank you for your advice though. I read the documentation as
you suggested. Have a good day!
 
Back
Top