private void button1_Click(object sender, EventArgs e) { listBox1.Items.Add(comboBox1.SelectedItem.ToString()); }
private void addcourse_Click(object sender, EventArgs e) { string text = listBox1.GetItemText(listBox1.SelectedItem); dropdownid.Items.Add(text); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)