title: adding items to combobox
body: <p>I am trying to add some items to combobox, like its showed on msdn site, but it throws me an null reference exception</p>
  
  <pre><code> comboBox1.Items.Add("test");
  </code></pre>
  
  <p>I try to change it on</p>
  
  <pre><code>ComboBox combobox1 = new ComboBox();
  object test = new object();
  test= "test";
  comboBox1.Items.Add(test);
  </code></pre>
  
  <p>But it didnt works too
  Can you tell me, where is the problem? 
  Thanks</p>
  
  <p>EDIT:
  SOLVED :
  problem was, that I was calling </p>
  
  <pre><code>InitializeComponent();
  </code></pre>
  
  <p>after this code, not before, now it works as I would like before :)</p>