How to close a MessageBox after several seconds
Try the following approach: AutoClosingMessageBox.Show(“Text”, “Caption”, 1000); Where the AutoClosingMessageBox class implemented as following: public class AutoClosingMessageBox { System.Threading.Timer _timeoutTimer; string _caption; AutoClosingMessageBox(string text, string caption, int timeout) { _caption = caption; _timeoutTimer = new System.Threading.Timer(OnTimerElapsed, null, timeout, System.Threading.Timeout.Infinite); using(_timeoutTimer) MessageBox.Show(text, caption); } public static void Show(string text, string caption, int timeout) { new AutoClosingMessageBox(text, … Read more