Saravanan Ponnusamy

Saravanan Ponnusamy

  • 683
  • 2.6k
  • 589.1k

Restart my application

Oct 3 2020 1:04 AM
i have a winform application, which will work with TCPListener. it is working fine.
 
In TCPListener i need to send back success message once my application complete the process. 
 
but some times, rare condition, my application got stuck, so i cant send success message back to TCPListener.
 
so i have plan, im going create a icon in desktop, when user double clicked on it the application should restart. it should get killed itself and needs to restart.
 
i googled it, some says to use Application.restart(). but where and how to use in my application.
 
thanks in advance. 

Answers (3)