How to set TextBox height using WinForms 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.Multiline = true;
            textBox1.Height = 40;
        }
    }
}




/*
run:
 

  
*/

 



answered Jan 6, 2024 by avibootz

Related questions

1 answer 246 views
1 answer 233 views
1 answer 264 views
1 answer 229 views
1 answer 250 views
1 answer 215 views
1 answer 224 views
...