DateTimePicker control - how to display a blank date when the form loads?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ruvi
    New Member
    • Apr 2007
    • 6

    DateTimePicker control - how to display a blank date when the form loads?

    Hi,

    I have a datetimepicker control in my form. It works fine except for one thing-
    Its default value is automatically set to today's date. I want the control to be blank when the form loads.
    Can you please point me in the right direction about how to do this?

    Thanks for your time.
  • rave3085
    New Member
    • Apr 2007
    • 27

    #2
    make the checkbox property of the DTpicker to True and type
    DTPicker.value= "" in the Form_Load Event

    Comment

    • ruvi
      New Member
      • Apr 2007
      • 6

      #3
      Originally posted by rave3085
      make the checkbox property of the DTpicker to True and type
      DTPicker.value= "" in the Form_Load Event
      But, the checkbox also gets displayed. Is there anyway to do it without displaying the checkbox?

      Comment

      Working...