|
-
Jul 29th, 2009, 04:07 AM
#1
Thread Starter
Lively Member
Populate ComboBox with list of Years for DOB
Hi guys, im creating my own control to replace the Date Calender within 2008. I want to return a list of Years into a combobox for the user to select.
Im aware i can manually add these years but ideally i would like to return a list just like the calender control.
Any ideas where to start?
thanks
-
Jul 29th, 2009, 04:14 AM
#2
Re: Populate ComboBox with list of Years for DOB
You can use the Date Time Picker, and:
1. set the Custom Format > yyyy
2. set the Format > Custom
3. set ShowUpDown > True
And there you have it... Not a ComboBox but maybe it help you...
Rate People That Helped You
Mark Thread Resolved When Resolved
-
Jul 29th, 2009, 04:54 AM
#3
Thread Starter
Lively Member
Re: Populate ComboBox with list of Years for DOB
Thanks, that helps alot. But would still like to know if its possible to put the list in a combo box
-
Jul 29th, 2009, 05:01 AM
#4
Re: Populate ComboBox with list of Years for DOB
Yes it is.
You can accomplish data with several ways, for example you can use a loop and add the years that you want into the combo box...
Rate People That Helped You
Mark Thread Resolved When Resolved
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|