Answer the question
In order to leave comments, you need to log in
Why doesn't it paint the button with a gradient?
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
this.Paint += FlatButton_Paint;
using (LinearGradientBrush linGrBrush = new LinearGradientBrush(new Point(borderRectangle.Left), new Point( borderRectangle.Right), Color.FromArgb(255, 248, 140, 17), Color.FromArgb(255, 241, 99, 21)))
{
e.Graphics.FillRectangles(linGrBrush);
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question