1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

creat text box

Discussion in 'C#' started by devilonline, Sep 8, 2010.

  1. devilonline

    devilonline New Member

    Joined:
    Sep 8, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi, i have this code that every time i click the button it creates a text box, how can i do this more than one time? thanks

    Code:
            private void button1_Click(object sender, EventArgs e)
            {
                TextBox myText = new TextBox();
         
                myText.Text = "";
                this.Controls.Add(myText);
    
    
            }
     

Share This Page