How to set textbox text to bold in C#

1 Answer

0 votes
namespace WinFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            textBox1.Font = new Font(textBox1.Font, FontStyle.Bold);
        }
    }
}



/*
 * run:
 * 
 *    
 */


 



answered Jul 29, 2023 by avibootz

Related questions

1 answer 190 views
1 answer 158 views
1 answer 132 views
1 answer 175 views
1 answer 143 views
...