int Counter=0; while(Counter<10) { // create button ! Counter++; }
int Counter=0; while(Counter<10) { // create button ! Button myButton = new Button(); myButton.ID = "btnNumber" + Counter; myButton.Text = "btnNumber" + Counter; somePlaceholderOrPanel.Controls.Add(myButton); Counter++; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)