Click here to Skip to main content
15,910,981 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
if i type
text box.text="type some year"
the datetimepicker take corresponding calender in textbox year.pls help me
Posted
Updated 30-Nov-11 21:22pm
v2
Comments
[no name] 1-Dec-11 3:22am    
EDIT: added "code" tag

1 solution

Try:
C#
myDateTimePicker.CustomFormat = "yyyy";
myDateTimePicker.Format = DateTimePickerFormat.Custom;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900