469,927 Members | 1,784 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

DateTimePicker Checked Property (Bug In Control?)

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?
Nov 16 '05 #1
1 6013
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.

"John Smith" <js@no.com> wrote in message
news:#2**************@TK2MSFTNGP10.phx.gbl...
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?

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Carlos Hernandez | last post: by
reply views Thread by Dan Cimpoiesu | last post: by
4 posts views Thread by Jacek Jurkowski | last post: by
2 posts views Thread by Chris Fairman | last post: by
3 posts views Thread by Simon Tamman | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.