2

I want to restart my WPF Application programmitically; in windows Forms I used System.Windows.Forms.Application.Restart();

I have tried this :

private void Restart() 
{
    System.Diagnostics.Process.Start(Application.ResourceAssembly.Location); 
    Application.Current.Shutdown(); 
}

I have deployed my application with ClickOnce and its not working there. Any help would be great.

Mohd Ahmed
  • 1,422
  • 13
  • 27

0 Answers0