I am using the SplashScreen feature in WPF by setting a bitmap\'s Build Action to Splashscreen. Behind the splash screen, licensing informa
I came up with this solution myself, so maybe there's something wrong with it, but it seems to work perfectly:
Window temp = new Window() { Visibility=Visibility.Hidden };
temp.Show();
MessageBox.Show(temp, "An error occurred before the application could start.\n\nTechnical Details: " + ex.Message, "Fatal Error", MessageBoxButton.OK, MessageBoxImage.Stop);
App.Current.Shutdown(1);