Color.Chocolate : Color « System.Drawing « C# / C Sharp by API






Color.Chocolate

  

using System;
using System.Drawing;
using System.Windows.Forms;
   
class PaintEvent
{
     public static void Main()
     {
          Form form   = new Form();
          form.Text   = "Paint Event";
          form.Paint += new PaintEventHandler(MyPaintHandler);
   
          Application.Run(form);
     }
     static void MyPaintHandler(object objSender, PaintEventArgs pea)
     {
          Graphics graphics = pea.Graphics;
   
          graphics.Clear(Color.Chocolate);
     }
}

   
    
  








Related examples in the same category

1.Color.AliceBlue
2.Color.FromArgb (int r, int g, int b)
3.Color.FromArgb(100, Color.Blue)
4.Color.FromArgb(77, color.R, color.G, color.B)
5.Color.FromKnownColor
6.Color.FromName
7.Color.LightGray
8.Color.Tomato
9.Color.White