Change the back color of the radio buttons to the initially assigned color...

  • Thread starter Thread starter Melen2242062
  • Start date Start date
M

Melen2242062

Guest
Cheers,

I am creating radio buttons dynamically.
So in the event that I assign to that control, I need
that when I press one of the radio buttons change the background color.
And that those who had previously oppressed have the default color assigned again.

The problem is when I press a ratio button, do not change the others to the default color.


This is my code:

RadioButton rdo = sender as RadioButton;

foreach (Control item in areasGroupBox.Controls)
{
rdo.BackColor = SystemColors.GradientActiveCaption;

}
rdo.BackColor = Color.FromArgb(192, 255, 192);


Thanks for the help!

Continue reading...
 
Back
Top