DateTimePicker Checked Property (Bug In Control?)

  • Thread starter Thread starter John Smith
  • Start date Start date
J

John Smith

Hey folks,

Got some strange behavior going on here. I have a datetimepicker with
showcheckbox = true;

If I set Checked=true and set the Text of the datetimepicker, then then the
Checked property is always = true....even after the user unchecks the
checkbox.

This is fully reproducable.

I need to be able to tell if the user has unchecked the datetimepicker's
checkbox, but I can't because it is always returning True now.

Does anyone know of any workarounds?
 
Well I've confirmed this is a bug with the datetimepicker control and I've
also found a solution, but man does it stink.

Commenting out Application.EnableVisualStyles() fixes the problem.

If anyone knows of another solution I'm all ears.
 
Back
Top