Phil
Sat Jul 16 16:29:11 CDT 2005
You probably need to specify an enumeration value and not a number.
lable.Font = new Font("Andy", 16f, FontStyle.Bold);
Phil Wright
Follow my C# microISV at....
http://componentfactory.blogspot.com
"Ron Rasmussen" <Ron Rasmussen@discussions.microsoft.com> wrote in message
news:50B51617-07BF-4338-AB7F-D0D6703BBEA3@microsoft.com...
>I am trying to change a lables font at runtime.
>
> When I sent the labels font to New Font ("Andy",16,2) it wont allow be to
> set the style(2)
> If I remove the style it errors because the font does not support the
> style
> regular.
>
> This has to be easy....What am I doing wrong?
>
> Thanks