closed form, exe still hangs around

I created a button to end my application and i call

me.close() in it.

sometimes the exe goes away, and sometimes not.

any suggestions as to why this is and how i can fix it

Thanks,


Dan



Answer this question

closed form, exe still hangs around

  • Mahender_aunkella

    ah wait. Me.Close() only closes the form, but still running the application in memory.

    Application.Exit() would be the way to close your application properly. Try this



  • Temppp

    no threads. no events that are still on going.

    do i need to dispose of all the events i cant just call me.close

    Thanks,

    Dan


  • Nitwit

    are you creating any threads that maybe still running in your application

    do you have any events/code going on in the form_closed/closing events



  • aybe

    ah! that was it - thanks!
  • closed form, exe still hangs around