I am having issues trying to put values into another combobox after the user selects a value in the first combobox
private void ClassComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
if (ClassComboBox.Items.ToString().Equals("Warrior"))
{
RoleComboBox.Items.Add("Tank");
RoleComboBox.Items.Add("DPS");
}
}
This is what I have so far since once the player choose their warrior class their roles is only allowed to be one of the following values. Problem is when I run this there are no values in my RoleComboBox. If anyone can help that would be great. Thanks