Radio button, set label text colour

  • Thread starter Thread starter Niclas
  • Start date Start date
N

Niclas

Hi,

Can someone please help me with how I change the text colour of the text in
the label that comes with a Radio button ?

Thanks

Niclas
 
Niclas said:
Hi,

Can someone please help me with how I change the text colour of the text
in the label that comes with a Radio button ?

Thanks

Niclas

Change the ForeColor in Properties for the radio button.
Either in design mode,
or in code: this.radioButton1.ForeColor = Color.Blue;
 
Hi

Yes, there should be no problem at all? If you change the color i design
mode you should see the change imediatly on your form.

public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();

//InitializeComponent would include this for example, if you do
it in design mode.
//this.radioButton1.ForeColor = Color.Blue;
}

private void Form1_Load(object sender, EventArgs e)
{
// change whatever InitializeComponent does
this.radioButton1.ForeColor = Color.Blue;
}
}
 
Back
Top