title: Coppying Listbox numbers to Array c#
body: <p>I am trying to copy items from listbox to an array. 
  But I missing something here. I get error Method name expected. </p>
  
  <p>I have three errors:</p>
  
  <p>Error   CS1955  Non-invocable member 'ListBox.Items' cannot be used like a method.  </p>
  
  <p>Error   CS0201  Only assignment, call, increment, decrement, and new object expressions can be used as a statement</p>
  
  <p>Error   CS0149  Method name expected    WindowsFormsApp6</p>
  
  <pre><code>public partial class Form1 : Form
  {
      public Form1()
      {
          InitializeComponent();
  
      }
      int i;
      private void Form1_Load(object sender, EventArgs e)
      {
  
  
          Random rand = new Random();
          for (i = 0; i &lt;= 10; i++)
          {
              listBox1.Items.Add(rand.Next(0, 10));
          }
  
  
      }
  
      private void button1_Click(object sender, EventArgs e)
      {
  
  
      }
  
      private void label1_Click(object sender, EventArgs e)
      {
  
  
          for (i = 0; i &lt;= listBox1.Items.Count - 1; i++)
          {
              string[] strArray = new string[11];
  
              strArray(i) == listBox1.Items(i);
  
              label1.Text = "Coppied items"; 
  
  
          }
      }
  }
  </code></pre>