title: how to create a 5 by 5 matrix in c# windows form
body: <pre><code> for (int i = 0; i!=5; i++)
   {
      for (int j=0; j!=5; j++)
      {
          array times[i, j] = int.Parse(Tb_First.Text);
          list_Matrix.Items.Add(array times[i,j]);
      }
   }
  </code></pre>
  
  <p>or</p>
  
  <pre><code> int[,] numbers = new int[,]  {{ 1 , 2 , 3, 4, 5 }, { 2, 3, 4, 5, 6 }} ;
  
   private void button1_Click(object sender, EventArgs e)
   {
       for (int i = 0; i !=5; i++)
       {
           for (int j = 0; j !=5; j++)
           {
               list_Matrix.Items.Add(numbers[i,j].To String());                  
           }
       }
   }
  </code></pre>
  
  <p>i have tried this but it isn't working.. is there any other methods to generate a 5 by 5 matrix in C# in windows form. the input is written on text box and the matrix should be in a list box. some one please help me</p>