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
示例#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();
        }
示例#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();
 }