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.


Amit GuptaRank #190 · 12.8K reputationPosted Oct 3, 2020, 12:24 AM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Oct 2, 2020, 10:30 PM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Oct 2, 2020, 9:36 PM EDT