title: C# Access a form's comboBox items from another form
body: <p>I have two forms: form1 and form 2. The comboBox is in form2. I am trying to add an item to the list of the comboBox choices from form1. Here is what I've tried so far.</p>
  
  <pre><code>form1:          
  var form2 = new Form2();                   
  if (variable == "value") {           
    form2.Controls["ComboBox1"].Items.Add("another item")          
  }
  
  this.Hide();          
  form2.Show; 
  </code></pre>
  
  <p>The problem with this one is that it doesn't let me select the items. (It doesn't let me type in .Items.Add)</p>
  
  <hr>
  
  <p>Ive also tried to make the comboBox public by clicking on it in the form and changing the private to  public. This is what it looks like when I change it.</p>
  
  <pre><code>public void comboBox1_SelectedIndexChanged(object sender, EventArgs e){
  }
  </code></pre>
  
  <p>but when I try to access <code>comboBox1</code> all I get as available is:</p>
  
  <pre><code>comboBox1_SelectedIndexChanged
  
  form2.comboBox1    //This doesn't work            
  form2.comboBox1_SelectedIndexChanged   //This is the only option available 
  </code></pre>
  
  <p>I probably made a ton of mistakes but that's because im new to this. I just started learning so if you could please try to explain simply that would help. Please avoid the get{} set{} things if possible. And please explain to me how to make the buttons and other things in a different form public because I know clicking on it and changing the private to public isn't the right way like I did in the example above. </p>