I have two forms, a combobox is populated on both forms with this code -
**departmentCodeComboBox.Items.Add("");
foreach (var dept in Departments.GetDepartmentList())
{
departmentCodeComboBox.Items.Add(dept);
}**
When a user clicks the edit button, I want to set the selected item on from2 based on form one.
what is the best way to do this dynamically?