I need Create many for textbox
example
http://www.al-lord.com/photo/img/31f6256da18478b993e7407532077072/02.gif
result
http://www.al-lord.com/photo/img/13a04d9d3a4aec5b27575e69003d2d17/01.gif
help me
How I can do this?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
AnttiRank #9,295 · 208 pointsPosted Mar 13, 2006, 1:45 AM EST
Just create textbox objects, and add them to the form. Use for-loop to make sufficient amount of text boxes.
this.SuspendLayout(); for(int i=0; i<texkBoxCount; i++) { TextBox newBox = new TextBox(); newBox.Size = new Size(100,20); newBox.Position = new Point(i*20,10); this.Controls.Add(newBox); } this.ResumeLayout();