How to change textbox font 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("Arial", 20);
        }
    }
}




/*
 * run:
 *
 * 
 */


 



answered Aug 1, 2023 by avibootz

Related questions

1 answer 127 views
2 answers 148 views
148 views asked Sep 26, 2023 by avibootz
1 answer 117 views
117 views asked Aug 5, 2023 by avibootz
2 answers 297 views
297 views asked Jun 29, 2021 by avibootz
1 answer 270 views
1 answer 136 views
...