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.
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 attend4days leftRegister
Shweta LodhaRank #31 · 39.8K reputationPosted Jan 21, 2016, 1:33 AM EST
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);
Ranjit PowarRank #553 · 4.4K reputationPosted Jan 21, 2016, 4:00 AM EST
chennakrishnareddy bijivemula28 reputationPosted Jan 21, 2016, 7:44 PM EST
Ranjit PowarRank #553 · 4.4K reputationPosted Jan 21, 2016, 9:25 PM EST
Ranjit PowarRank #553 · 4.4K reputationPosted Jan 21, 2016, 9:51 PM EST
for(int i=0;i<30;i++)
{
Button btn =new Button ();
tablelayoutpanel. Controls. Add(btn);
}