title: Add combo-box item through method - c#
body: <p>I need to add an item to a combo-box from other class,
  this is the method in the class that has the combo-box:</p>
  
  <pre><code>public partial class NMAP : Form
  {
      public void Add_ip(string ip)
      {
           IP_box.Items.Add(ip);
      }
  }
  </code></pre>
  
  <p>The code where I'm calling the function:</p>
  
  <pre><code>public class MainGame
  {
      NMAP n = new NMAP();
      n.Add_ip("0.0.0.0");
  }
  </code></pre>
  
  <p>With nothing special, just adding an item through other class.</p>