Adding user given name to EAR events and enabling User Events.
2 using System.Collections.Generic;
3 using System.ComponentModel;
8 using System.Threading.Tasks;
9 using System.Windows.Forms;
11 namespace SharpDisplayManager
13 public partial class FxControl : UserControl
17 InitializeComponent();
20 protected override void OnPaint(PaintEventArgs e)
22 // Call the OnPaint method of the base class.
25 SolidBrush brush = new SolidBrush(Color.Blue);
26 // Declare and instantiate a new pen.
27 Pen myPen = new Pen(brush);
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)));