Server/FxControl.cs
author StephaneLenclud
Sat, 13 Aug 2016 23:26:54 +0200
changeset 232 5a739e2e5255
permissions -rw-r--r--
Published v0.11.0.0.
     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 }