error with string index going below 0
hope explanation in comments enough give basic idea of intended purpose , error.           public  string [] tbchatold = new  string [19]; // array store userinput       int  = 0; // counter ofr event below.             private  void  tbchat_enter( object  sender, keypresseventargs e)      {        //purpose of snip-it 1: display text tryped in textbox tbchat richtextbox windowchat.         //now wrote code following stores userinput empty index in array tbchatold[]         //using counter int declayed above. im hoping when = end of index starts storing         //at index 0 again. in giving user 20 stored strings thay can go to.         //i "think" part of code above explanation.         string  userinput;        if (e.keychar == ( char )keys.enter)        {                    userinput = tbchat.text;          windowchat.text += userinput + "\r\n" ;          if  (i != 19)          {            tbchatold[i] = userinput;            i++;          }          else  if  (...