I need to restart a windows mobile 6 application.
Here is the code I have tried but it just exits and does not restart the app.
public static void RestartApplication()
{
var fileName = Assembly.GetExecutingAssembly().GetName().CodeBase;
var startInfo = new ProcessStartInfo
{
FileName = fileName,
};
Process.Start(startInfo);
Application.Exit();
}
Thanks!