A
Andy
Hi,
I have a Wpf application, and have some code in my App.xaml.cs file
that runs on Application_StartUp. It's possible for errors to occur
here, and I let AppDomain.CurrentDomain.UnhandledException or
System.Windows.Application.Current.DispatcherUnhandledException event
handlers handle any errors.
In the error handling routine, I can call MessageBox.Show to display
an error message to the user. This kinda works, as the messagebox
appears, but the program immediately exits and the message box
closes.
Any ideas how to get the application to wait until the messagebox is
dismissed by the user before shutting down?
Thanks
Andy
I have a Wpf application, and have some code in my App.xaml.cs file
that runs on Application_StartUp. It's possible for errors to occur
here, and I let AppDomain.CurrentDomain.UnhandledException or
System.Windows.Application.Current.DispatcherUnhandledException event
handlers handle any errors.
In the error handling routine, I can call MessageBox.Show to display
an error message to the user. This kinda works, as the messagebox
appears, but the program immediately exits and the message box
closes.
Any ideas how to get the application to wait until the messagebox is
dismissed by the user before shutting down?
Thanks
Andy