I try to automatically shut down an wpf application at midnight with:
Dispatcher.BeginInvokeShutdown(DispatcherPriority.Normal);
This works very well in general, but when there is a message box opening waiting for user response, the application fails to shutdown. Is there a way to shut down the application regardless of the opening messagebox?