Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

wpf restart application issue

$
0
0

HI,

I have drop-down control in WPF application. When I change my drop-down value, it's asking me to restart your application. 

below is code which will be executed if I hit OK to restart.

if (result == MessageBoxResult.OK)
                    {

System.Diagnostics.Process.Start(Application.ResourceAssembly.Location);                             Application.Current.Shutdown();                       
                    }

This code makes my application shut down but when re start application, it give me below error.

pls help

thanks


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>