Something like this??
itemsComboBox.Items.Add("Dog");
itemsComboBox.Items.Add("Cat");
itemsComboBox.Items.Add("Pig");
private void itemsComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
switch ((string)itemsComboBox.SelectedItem)
{
case "Dog":
testTextBox.Visible = true;
break;
case "Cat":
break;
case "Pig":
break;
}
}
Does that help?