comboBox.Items.AddRange(Enumerable.Range(18, 38).Cast<object>().ToArray());
comboBox.SelectedIndex = 0;
Console.WriteLine(comboBox.SelectedValue + "test");
I get just "test" without the "18" printed. I also don't clearly understand what's the difference between SelectedValue and SelectedItem, even if I read the guide.