Datetimepicker bug

i have a datetimepicker with a showcheckbox property set to true. I set the format of the date to MM/dd/yyyy so that i can input numeric dates. But everytime i input the numeric dates the cursor focuses on the checkbox control. This is obviously a bug. is there any workaround to this problem please help.


Answer this question

Datetimepicker bug

  • ebence

    i set the datetimepicker showCheckbox property to true. So that a checkbox will appear on the datetimepicker. The Custom format is "MM/dd/yyyy". IF the showCheckbox property is False, Entering a numeric dates is not a problem. But when the ShowCheckbox Property is set to True, Everytime i key-in "/" after the Month, the checkbox receives the focus instead of the Day..



  • Ramin

    To attempt to clarify your issue, you have a DateTimePicker on a form with other controls. Programatically setting the date of the DateTime control forces focus away from whatever control had it before to the DateTimePicker

    If that is what you are stating, I have not seen this behavior. The CheckBox does get the yellow focus, but doesn't actually HAVE Window focus. This is graphical only.

    If I have misunderstood your question, please give more details.


  • nobsay

    I also tried this and it works as I would expect. The checkbox does not get focus when entering the forward slash character after the month. I tested this in a new form with .NET 1.1. and 2.0.

    Do you have other event handled that might explain this If you create a new project with a form with only one datetimepicker on, can you reproduce this



  • Datetimepicker bug