• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 304
  • Last Modified:

How do I create a new Font, that's Bold?

I need to create a new font, but I need it to be bold.  I see there are 13 constructors from which to choose, but I'm not sure which one is for me.  Unless there is another way to make the font Bold.  That attribute is read-only.

Thanks.
0
ba272
Asked:
ba272
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
You've got it right...you make a new Font.

For instance, if you wanted to change the Font in a TextBox so that it was Bold:

    textBox1.Font = new Font(textBox1.Font, FontStyle.Bold);
0
 
ba272Author Commented:
Thanks.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now