Sunday 15 September 2013

Combobox add range alternative C#

Combobox add range alternative C#

I basically want to add ages from 1 to 100, but I don't want to type each
one in the string[], something like add 1 then increment until 100
I have this at the moment
cmbAge.Items.AddRange(new string[] {"1", "2","3","4",...});
Thank you in advance

No comments:

Post a Comment