vasu babu

vasu babu

  • NA
  • 4
  • 0

adding controls to panel dinamically

Jun 7 2010 2:38 AM
Hi,
I have a flowlayout panel containing 3objects(containing checkbox and textbox) while form loading. I have a button ADD, when ever user clicks add he gets input box and enter some number. i have to add that number of objects to flowlayout along with old 3objects.

for (int i = 0; i < iParseCount; i++)
{
UserPattern oUserPattern = new UserPattern("userDefParser" + (i+1));
pnlUserPattern.Controls.Add(oUserPattern);
}
here pnlUserPattern is the flowlayout panel.

problem is only intial 3 objects are showing.

Any help please..........

thanks in advance.

Vasu.

Answers (3)