How to clear label text in C#

1 Answer

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

        private void button1_Click(object sender, EventArgs e)
        {
            label1.Text = "";
        }
    }
}




/*
 * run:
 *
 * 
 * 
 */

 



answered Aug 22, 2023 by avibootz

Related questions

1 answer 155 views
1 answer 157 views
157 views asked Aug 26, 2023 by avibootz
1 answer 120 views
120 views asked Aug 21, 2023 by avibootz
1 answer 172 views
1 answer 144 views
1 answer 126 views
126 views asked Jul 27, 2023 by avibootz
...