Hi,
I have a windows forms app. I would like to change the textbox name programmatically. Is there a way to do it?
Thanks in advance & Best Regards.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Piyush ModhavadiyaPosted Aug 12, 2015, 12:55 PM
Narasimha Reddy ChennupalliPosted Aug 11, 2015, 6:40 AM
Rajeesh MenothPosted Aug 3, 2015, 8:43 AM
Upendra Pratap ShahiPosted Aug 3, 2015, 8:28 AM
TextBox txtBox = new TextBox();
txtBox.Name = "NewMsg";
txtBox.Text = "Hello test!";
this.Controls.Add(txtBox);
Amitesh VermaPosted Aug 3, 2015, 7:48 AM
txtBox.Name = "readIn";
txtBox.Text = "text to example!";
this.Controls.Add(txtBox);