I am working on a WPF project and I have a years combobox that should contain years from 1950 to present year. Any ideas how proceed ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would write a loop that starts at 1950 and ends at the current year. For every iteration of this loop just add an entry to the combobox with the current loop counter as content.
Some pseudocode: