Server/FxControl.cs
author Stephane Lenclud
Sun, 24 Jul 2016 13:30:08 +0200
changeset 212 1a0791daa243
permissions -rw-r--r--
Actions persistence working.
     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 }