Results 1 to 4 of 4

Thread: Populate ComboBox with list of Years for DOB

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2008
    Posts
    98

    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

  2. #2
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    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

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2008
    Posts
    98

    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

  4. #4
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    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
  •  



Click Here to Expand Forum to Full Width