My requirement is i have a one windows application form in this i have to add one panel control and in panel i have to print infinite buttons and there is one condition that is each row having only 10(Ten) buttons.. please any one help me.
Loading
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.
Ranjit PowarPosted Jan 22, 2016, 2:51 AM
for(int i=0;i<30;i++)
{
Button btn =new Button ();
tablelayoutpanel. Controls. Add(btn);
}
Ranjit PowarPosted Jan 22, 2016, 2:25 AM
chennakrishnareddy bijivemulaPosted Jan 22, 2016, 12:44 AM
Ranjit PowarPosted Jan 21, 2016, 9:00 AM
Shweta LodhaPosted Jan 21, 2016, 6:33 AM
what do you mean by infinite buttons? You system may run out of memory. If you are looking for button creation then:
Button btnAdd = new Button();
btnAdd.BackColor = Color.Gray;
btnAdd.Text = "your caption";
btnAdd.Size = new System.Drawing.Size(50, 25);