how can I Restart my WPF application using c#?
A:
Usually you need to use two processes. anyway I think this post is helpful
http://stackoverflow.com/questions/779405/how-do-i-restart-my-c-winform-application
Bander
2010-10-09 00:38:24
+4
A:
I don't think there's a direct method in WPF like there is in WinForms. However, you could use methods from the Windowns.Form
namespace like this: (You might need to add a reference to the System.Windows.Form
assembly)
System.Windows.Forms.Application.Restart();
System.Windows.Application.Current.Shutdown();
keyboardP
2010-10-09 00:39:48
A:
You can use the Windows API Code Pack's Restart and Recovery API. Just be aware that this is a new API, so it will only work on current operating systems (ie: Windows 7).
Reed Copsey
2010-10-09 00:46:10