Shows a warning dialog to the user. - CSharp System.Windows.Forms

CSharp examples for System.Windows.Forms:Dialog

Description

Shows a warning dialog to the user.

Demo Code


using System.Windows.Forms;
using System.Collections.Generic;
using System.Text;
using System.IO;/* w ww. j a v a  2s .c  o  m*/
using System;

public class Main{
        /// <summary>
        /// Shows a warning dialog to the user.
        /// </summary>
        public static void ShowWarning(String message)
        {
            MessageBox.Show(message, " Warning", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
        }
}

Related Tutorials