Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Time Picker Control, Checkbox Value 1

Status
Not open for further replies.

BIGKAY

Programmer
Aug 13, 2001
2
US
This control allows me set the checkbox property to True / False. If the Checkbox property is set to true, the checkbox is displayed in the control and it allows the user to decide if the Value property will be populated or not and if the user wants to use the date in the query they are about to run against the DB. My question is, how can I check or uncheck the checkbox from within my code to set the checkbox at an appropriate default value at various instances the user is running the program? The checkbox property is only used to determine if the checkbox should be displayed or not.
 
If you set the value of the DatePicker to a date, any date, the checkbox is automatically ticked. If you set it to Null, the checkbox is unticked and the date faded out.
When unticked, the value visible will be the last value. So if you want the DatePicker to show today with the checkbox unticked, you have to set the Value to the date, and then to Null
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top