I have a ComboBox with 30 options in it. What id like to do is be able to have the program know which option was selected and which download link to use for that option. I can use if else statements but with 30 options that seem incredibly unnecessary.
If option 1, then download link 1. else if option 2, then download link 2.. etc, etc.
This seems like too big of a hassle. Is there a better way to state when an option is picked, use the corresponding download value?
I would like to somehow store a value(the url) of each combobox option (the display text), and then use the selected items value when I need to call the url link. I'm not sure how or if that can be done with windows forms in Visual Studio