samedi 2 mai 2015

Set 2 colors to a Checkbox text possible?

So i want to set 2 color to a Checkbox text :

`if (this.checkBox4.Checked)
            {
                this.checkBox4.ForeColor = Color.Green;
                this.checkBox4.Text = "Max Parameters on set ON";

            }
            else
            {
                this.checkBox4.ForeColor = Color.Red;
                this.checkBox4.Text = "Max Parameters on set OFF";

            }

I want to set ON to Green and OFF to Red but i don't think it's possible...

Thanks




Aucun commentaire:

Enregistrer un commentaire