Just for fun, the name of the month is ComboBox in three lines:
comboBox1.DataSource = new BindingSource(
System.Globalization.DateTimeFormatInfo.CurrentInfo.MonthNames
.Where(m => m != String.Empty)
.Select((m, i) => new { Name = m, Index = i })
.ToDictionary(x => x.Index, x => x.Name),
null);
comboBox1.DisplayMember = "Value";
comboBox1.ValueMember = "Key";
Now there comboBox1.SelectedValuewill be 0..11 depdending in the selected month.
source
share