I am working on a windows project and I have a years combobox that should contain years from 1910 to present .This my code for this
comboboxYears.DataSource = Enumerable.Range(1910, DateTime.Now.Year).ToList();
But the range is not between 1910 and present year ..instead 1910 and 3924.what am i doing wrong heree
Aucun commentaire:
Enregistrer un commentaire