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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hemant SrivastavaRank #581 · 4.2K reputationPosted Jan 6, 2014, 11:10 AM EST
// 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;