title: C# - Get a List<string> data from a form to another
body: <p>I want to ask help about my problem. My problem is that I can't get the values of a List from another form and transfer it into a ListBox in another form.. I want to make the elements of the List to be the datasource of the list box.</p>
  
  <p>These are the screenshot of my program.</p>
  
  <p>This is the code of my Form1.</p>
  
  <pre><code>public Form1()
      {
          InitializeComponent();
      }
  
      public List&lt;string&gt; list = new List&lt;string&gt;();
      private void button1_Click(object sender, EventArgs e)
      {
          Form2 form2 = new Form2();
  
          form2.ShowDialog();
      }
  
      private void Form1_Load(object sender, EventArgs e)
      {
          list.Add("!");
  
          MessageBox.Show(list.Count.ToString());
      }
  </code></pre>
  
  <p>Then in my Form2, I created an instance of Form1 and called the List list but when the Form2 loads, the ListBox is not populated with the data, and it appears that the List list doesn't contain any data when Form2 loads. Here is my code in Form2.</p>
  
  <pre><code>public Form2()
      {
          InitializeComponent();
      }
  
      private void Form2_Load(object sender, EventArgs e)
      {
          Form1 form1 = new Form1();
  
          listBox1.DataSource = form1.list;
      }
  </code></pre>
  
  <p>Any idea how i can solve the problem? I tried everything that I can do but I can't solve the problem. Sorry for my mistakes, I'm only a beginner in C#, in my course and here in stackoverflow. Thank you in advance.</p>