Is there a way to restart a windows application written in .NET using .NET code
I mean the application should exit and restart itself, on click of a button.
Application.Restart() is your method :)
Here is another StackOverflow answer that points out a couple of "watch-out-for's" with using this method.
http://msdn.microsoft.com/en-us/library/system.windows.forms.application.restart.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With