Form for a message box with an OK button. Uses a timer and when the timer expires, automatically closes the box. Useful for error messages or informational messages
Inheritance: System.Windows.Forms.Form
Exemple #1
0
        /// <summary>
        /// Shows the message box
        /// </summary>
        /// <param name="message"></param>
        public static void Show(String message)
        {
            var box = new TimedMessageBox(message);

            box.CenterToScreen();
            box.ShowDialog();
        }
Exemple #2
0
 /// <summary>
 /// Shows the message box
 /// </summary>
 /// <param name="message"></param>
 public static void Show(String message)
 {
     var box = new TimedMessageBox(message);
     box.CenterToScreen();
     box.ShowDialog();
 }