An guy needs to change the background of the checkbox, not the entire text outside of it. I tried this: checkBox1.BackColor = System.Drawing.Color.Red; but it looks ugly (https://prnt.sc/tdpu9f)and thats now what I wan't. I need it to change this color: https://prnt.sc/tdpuhl Tried this tho:
{
Point pt = new Point(e.ClipRectangle.Left + 2, e.ClipRectangle.Top + 4);
Rectangle rect = new Rectangle(pt, new Size(22, 22));
if (checkBox1.Checked)
{
using (Font wing = new Font("Wingdings", 14f))
e.Graphics.DrawString("ü", wing, Brushes.DarkOrange, rect);
}
e.Graphics.DrawRectangle(Pens.DarkSlateBlue, rect);
}```
Nothing that helps out.
Aucun commentaire:
Enregistrer un commentaire