you just create a simple loop:
for(int yearVal = 1900; yearVal <= 1987; yearVal++)
{
// cboYears is a ComboBox
cboYears.Items. Add(yearVal.ToS tring());
}
--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Rudy" <Ru**@discussio ns.microsoft.co m> wrote in message
news:97******** *************** ***********@mic rosoft.com...
Hello all!
Have a quick question on drop down list. Need to make a year ddl, 1900 to
1987. Is there a quick way to do this. I'm not binding this, just loading
it in the items collection.
Thanks!!!
Rudy