private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { if ((string)comboBox1.Items[comboBox1.SelectedIndex] == "Create") { CodeEditor ce = new CodeEditor(codeList[comboBox1.SelectedIndex]); ce.Show(); } }