Make fonts bold on display RRS feed

  • Question

  • Is there na way to make the fonts bold on a display to make them appear better. 
    • Moved by Stanly Fan Thursday, January 25, 2018 5:44 AM
    Friday, January 19, 2018 3:43 PM

All replies

  • Hi spopiela,

    I'm afraid you need to provide more details for your question, what the type of your project is? Winform app? Or WPF? Or Web app?

    If it is Winform application, which control are you using?

    In fact, you just need to set the font with the following method:

    YourControl.Font = new Font(YourControl.Font, YourControl.Font.Style | FontStyle.Bold);

    Just like:

            private void button1_Click(object sender, EventArgs e)
                textBox5.Font = new Font(textBox5.Font, textBox5.Font.Style | FontStyle.Bold);
                richTextBox1.Font= new Font(richTextBox1.Font, richTextBox1.Font.Style | FontStyle.Bold);
                label5.Font = new Font(label5.Font, label5.Font.Style | FontStyle.Bold);
                button2.Font = new Font(button2.Font, button2.Font.Style | FontStyle.Bold);

    Hope this helps!



    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Proposed as answer by Bob Ding Tuesday, January 23, 2018 3:14 AM
    Monday, January 22, 2018 2:07 AM
  • Hi spopiela,

    I am not sure what do you mean by "on a display".
    Is it a Windows Form, or Desktop of your computer?

    If it is a Windows Form, refer to Stanly Fan's post.
    If it is Desktop of your computer, you can change system font. But it is hard to make it bold, if it is needed please use 3rd party utility.

    Please specify the meaning of "on a display".



    • Edited by Ashidacchi Monday, January 22, 2018 4:02 AM
    Monday, January 22, 2018 4:01 AM