title: Combo Box Items are not Visible
body: <p>I have written the following code to view my score in ComboBox, and I write this all in <code>populate()</code> method, and I call it form load, but it shows empty combo box. Kindly tell me what's wrong it this code.</p>
  
  <p>I have made a separate class for DatabaseConnection.    </p>
  
  <pre><code>public void populate()
      {
          DatabaseConnection connection = new DatabaseConnection();
          OleDbCommand cmd = new OleDbCommand("Select score from Info", connection.Connection());
          connection.Connection().Open();
          OleDbDataReader reader = cmd.ExecuteReader();
  
          while (reader.Read())
          {
  
              comboBox1.Items.Add(reader[0].ToString());
  
          }
          connection.Connection().Close();
  
  
      }
  </code></pre>