Hello
After dynamically adding controls to TableLayoutPanel is it possible to hide -show one of this controls.For examle to hide the row of textBox5 from TableLayoutPanel? If yes , Please.
Thanks in advance.
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.
Hemant SrivastavaPosted Jan 6, 2014, 4:10 PM
// Adding dynamacially TextBox into Panel
TextBox txtBx1 = new TextBox();
txtBx1.Name = "TextBox_Name";
tableLayoutPanel1.Controls.Add(txtBx1);
//Enabling perticular control by their name
tableLayoutPanel1.Controls["TextBox_Name"].Enabled = false;