By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,089 Members | 1,152 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,089 IT Pros & Developers. It's quick & easy.

DateTimePicker Checked Property (Bug In Control?)

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.