Server/FxControl.cs
author StephaneLenclud
Wed, 31 Aug 2016 17:28:30 +0200
changeset 264 4a08e1b7ba64
permissions -rw-r--r--
EAR: Actions now support multiple iterations.
     1 using System;
     2 using System.Collections.Generic;
     3 using System.ComponentModel;
     4 using System.Drawing;
     5 using System.Data;
     6 using System.Linq;
     7 using System.Text;
     8 using System.Threading.Tasks;
     9 using System.Windows.Forms;
    10 
    11 namespace SharpDisplayManager
    12 {
    13     public partial class FxControl : UserControl
    14     {
    15         public FxControl()
    16         {
    17             InitializeComponent();
    18         }
    19 
    20         protected override void OnPaint(PaintEventArgs e)
    21         {
    22             // Call the OnPaint method of the base class.
    23             base.OnPaint(e);
    24 
    25             SolidBrush brush = new SolidBrush(Color.Blue);
    26             // Declare and instantiate a new pen.
    27             Pen myPen = new Pen(brush);
    28 
    29             // Draw an aqua rectangle in the rectangle represented by the control.
    30             e.Graphics.DrawRectangle(myPen, new Rectangle(new Point(0,0), this.Size - new Size(1,1)));            
    31         }
    32     }
    33 }