StephaneLenclud@198: using System; StephaneLenclud@198: using System.Collections.Generic; StephaneLenclud@198: using System.ComponentModel; StephaneLenclud@198: using System.Drawing; StephaneLenclud@198: using System.Data; StephaneLenclud@198: using System.Linq; StephaneLenclud@198: using System.Text; StephaneLenclud@198: using System.Threading.Tasks; StephaneLenclud@198: using System.Windows.Forms; StephaneLenclud@198: StephaneLenclud@198: namespace SharpDisplayManager StephaneLenclud@198: { StephaneLenclud@198: public partial class FxControl : UserControl StephaneLenclud@198: { StephaneLenclud@198: public FxControl() StephaneLenclud@198: { StephaneLenclud@198: InitializeComponent(); StephaneLenclud@198: } StephaneLenclud@198: StephaneLenclud@198: protected override void OnPaint(PaintEventArgs e) StephaneLenclud@198: { StephaneLenclud@198: // Call the OnPaint method of the base class. StephaneLenclud@198: base.OnPaint(e); StephaneLenclud@198: StephaneLenclud@198: SolidBrush brush = new SolidBrush(Color.Blue); StephaneLenclud@198: // Declare and instantiate a new pen. StephaneLenclud@198: Pen myPen = new Pen(brush); StephaneLenclud@198: StephaneLenclud@198: // Draw an aqua rectangle in the rectangle represented by the control. StephaneLenclud@198: e.Graphics.DrawRectangle(myPen, new Rectangle(new Point(0,0), this.Size - new Size(1,1))); StephaneLenclud@198: } StephaneLenclud@198: } StephaneLenclud@198: }