?
Solved

Question about Date Time Picker Control

Posted on 2006-05-05
5
Medium Priority
?
352 Views
Last Modified: 2010-04-23
What property or code can I use to stop the date time picker control from defaulting to current date.  If no date is selected, I would rather the value be null or blank, not a date.  Could you provide me with a code sample.  
0
Comment
Question by:garyinmiami2003
5 Comments
 
LVL 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 1200 total points
ID: 16614052
there is a property checkbox which you can set to true, then the control accepts null value
0
 
LVL 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 400 total points
ID: 16614058
Hi garyinmiami2003,

see my article of January 2005 at http://emoreau.s2i.com/

Cheers!
0
 

Author Comment

by:garyinmiami2003
ID: 16614155
Could you tell me a little more.  I see the property "Checked"  which is set to true.  My application shows the current date regardless of the value of that property.  
Also, I'm using VS 2003 in case your comment is based on 2005.  I have no property showing in property window called "cHECKED bOX"
wHAT i AM TRYING TO DO IS HAVE THE CONTROL SHOW NO DATE UNTIL ONE IS SELECTED  cAN YOU ELABORATE ON YOUR ANSWER?
 
0
 
LVL 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 400 total points
ID: 16614187
Have you read the section titled "Handling NULL date values" in my article? I do not use the checkbox (that user hardly understand when it is in a date time picker).
0
 
LVL 19

Accepted Solution

by:
Fahad Mukhtar earned 400 total points
ID: 16614197
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question