I tried creating an Ellipse class that inherits WinForms Control class and override OnPaint to draw ellipse. When i start the program if BackColor is a visible color, it draws a rectangle of the color of BackColor. I know it is from OnPaintBackground but if i override it, It does very strange things. Ideas? the class : class Ellipse : Control { public Ellipse {} protected override void OnPaint (PaintEventArgs pe)=> pe.Graphics.FillEllipse (new SolidBrush (BackColor), pe.ClipRectangle); }
8/8/2018 6:37:06 PM
רועי אבידן1 Answer
New AnswerLearn Playing. Play Learning
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message