Now I need to change the color of a font using a line of code, I've tried several combinations but have had no success.
Thanks again
Now I need to change the color of a font using a line of code, I've tried several combinations but have had no success.
Thanks again
font color changing
arstacey
tyrone_dude
button1.ForeColor =
Color.Red;any control has this property
Prometheus666
The font itself don't have a color property but any control ForeColor property sets the font color.
Steve_fr88
.NETicated!
Edit: Sorry, I didn't noticed that this is J#.
-chris
Ed cramgo
Great, but this is the last one for tonight, I off to bed...
p.s
mark the answer post - 'mark as answer' option so others can use this post to.
Jeff Pettiross - MS
Sorry, doesn't work.
This is the error.
Error 1 Cannot find field 'ForeColor' in type 'System.Windows.Forms.Label' C:\Documents and Settings\Eric\My Documents\School Work Gr.12\Programming\Visual J# Tutorials\CPT Millionaire\CPT Millionaire\Form1.jsl 686 3 CPT Millionaire
VeePee
You should say you are on J#....
this is the syntax for J#:
label1.set_ForeColor(Color.get_Red());
also, you can set it from the desinger by selecting the label and changing the ForeColor property.