title: C# saving items added to combobox
body: <p>I have a combo box that holds employee names that are selected by that employee. When I add a name to the combo box with a button click is there a way to keep the name in the combo box for the next time the program is started? Below is my code to add the employee names that I know need to be in the list and then the code to add a name to the combo box.</p>
  
  <pre><code> private void employeeSelect_Load(object sender, EventArgs e)
      {
          cboEmpName.Items.AddRange(new string[] { "John", "Roger", "Bill", "Jason", "James" });
      }
  
  
   private void addTechbtn_Click(object sender, EventArgs e)
      {
          if (!string.IsNullOrEmpty(txtAddTech.Text))
          {
              cboEmpName.Items.Add(txtAddTech.Text);
              txtAddTech.Clear();
              MessageBox.Show("Technician has been added");
          }
          else
          {
              MessageBox.Show("Enter a name to add to the list");
          }
      }
  </code></pre>