I'm trying to clear my textBox from another form in Visual C# when I click a button on another form, but nothing is working. I have done this is VB.Net with ease but in Visual C# I can't do it. Tell me an easy way to do that in (WinForm). I'm using .Net Framework 4.8.
This is my code which I used in VB.Net. Tell me how to do this in C#.
Note: form1 is a form where my textBox1 is present and form2 is a form where my button is present and I want that when I click that button textBox1 text become empty.
form1.textBox1.Text = ""