public void fillComboboxLocationNameReady(ComboBox comboBox) { comboBox.Items.Clear(); locationDB = new LocationDB(); connection = new DBConnection(); SqlDataReader reader = locationDB.fillComboboxLocationNameReaday(); while (reader.Read()) { comboBox.Items.Add(reader["name"]); } connection.close(); }