title: How to insert input into an array from a text box in C#
body: <p>I would like to insert the user input into an array when the user clicks the submit button.
  This is what I wrote but it doesnt seem to work. The form is called form1 and it is its own class, the textbox is textbox1. Note: I am a newbie in programming.</p>
  
  <pre><code>//This is my array
  private string[] texts = new string[10];
  
          public string[] Texts
          {
              get { return texts; }
              set { texts = value; }
          }
  
  //I then attempt to insert the value of the field into the textbox
  form1 enterDetails = new form1();
  for(int counter = 0; counter&lt;Texts.Length; counter++)
  {
  texts[counter]=enterDetails.textbox1.Text;
  }
  </code></pre>