Click here to Skip to main content
15,920,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i create text Box in runtime ( as many as the user wants ) & use those text box to add values & perform diffrent operations? Thank You :)
Posted
Comments
Richard C Bishop 17-Apr-13 11:52am    
You can use loops to do that.
Maciej Los 17-Apr-13 13:37pm    
YES!!!
My virtual 5!
Richard C Bishop 17-Apr-13 13:40pm    
Thank you!
Maciej Los 17-Apr-13 13:38pm    
What do you mean: use those text box to add values & perform diffrent operations?

Try this link:

Click Me![^]

This should provide you with some resources that can help.
Try researching the problem first, we are not your solution provider. Attempt to solve it yourself and then come back when you have actual issues with the code. Not when you just want a solution.
 
Share this answer
 
C#
private void Form1_Load(object sender, EventArgs e)
       {
           this.textBox1 = new System.Windows.Forms.TextBox();

           //
           // textBox1
           //
           this.textBox1.BackColor = System.Drawing.SystemColors.ScrollBar;
           this.textBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
           this.textBox1.Location = new System.Drawing.Point(29, 46);
           this.textBox1.Name = "textBox1";
           this.textBox1.Size = new System.Drawing.Size(100, 21);
           this.textBox1.TabIndex = 0;
           this.textBox1.Text = "txtBoxRunTime";
           this.Controls.Add(textBox1);
       }
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900