Re: Radio button, set label text colour by TAB
TAB
Wed Jul 23 21:13:10 CDT 2008
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;
}
}
"Niclas" <NOSPAM_lindblom_niclas@hotmail.com> skrev i meddelandet
news:eLcdCqO7IHA.2072@TK2MSFTNGP04.phx.gbl...
>
>> That was the obvious option that I tried, however it is not working in my
>> case and text remains black. Can you confirm that this works for you ?
>>
>> Niclas
>>
>> "TAB" <anders.berglund@email.com> wrote in message
>> news:e7a4mgA7IHA.4108@TK2MSFTNGP04.phx.gbl...
>>>
>>>
>>> "Niclas" <NOSPAM_lindblom_niclas@hotmail.com> skrev i meddelandet
>>> news:4C387DB8-67E9-4E6F-9B7C-1ADC2C3A44BA@microsoft.com...
>>>> 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;
>>
>