0
I have in my application a database configuration screen, in which once configured I have to close the system and then open again to take effect the changes made. How can I do this in an automatic way?
0
I have in my application a database configuration screen, in which once configured I have to close the system and then open again to take effect the changes made. How can I do this in an automatic way?
3
Although using WPF, provided you can add a reference to Assembly System.Windows.Form
(no reason not to), you can use a namespace method System.Windows.Forms
:
System.Windows.Forms.Application.Restart();
Behold: http://msdn.microsoft.com/en-us/library/system.windows.forms.application.restart(v=vs.110). aspx
Browser other questions tagged c# wpf
You are not signed in. Login or sign up in order to post.