Click here to Skip to main content
15,851,453 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
actually i have one checked datetime picker,one textbox,one dropdown(years,months,days)

and my question is if user check the date timepicker textbox and dropdown both are shoud not available(disable) to enter
depend on date time picker auomatically age should be calculated and displayed in texbox (depend on dropdown(years or months or days) also)

if user uncheck the datetime picker user should available to enter age(textbox),and select years or months or days (dropdown) depend on dropdown and textbox text
date of birth(date time picker) should be show automatically

please tell me the answer if you know

thank you

[EDIT]Shouting removed![/EDIT]
Updated 16-Jun-15 11:04am
OriginalGriff 16-Jun-15 5:01am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalization if you want to be taken seriously.

Use the "Improve question" widget to edit your question and STOP SHOUTING AT US.
Richard MacCutchan 16-Jun-15 6:05am    
The answer is to write the code to take note of the checkbox value, and display only the controls that the user is allowed to use.
Sergey Alexandrovich Kryukov 16-Jun-15 16:35pm    
What DateTime? .NET System.DateTime? Anything else?

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