Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - DateTimePicker Vista BUG
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

DateTimePicker Vista BUG

 Post Reply Post Reply
Author
Message
TomasS View Drop Down
Groupie
Groupie
Avatar

Joined: 28 January 2009
Location: Sweden
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote TomasS Quote  Post ReplyReply Direct Link To This Post Topic: DateTimePicker Vista BUG
    Posted: 15 April 2009 at 10:57am

I tried to use two datetimepickers to set a date range. I works great until you set MaxDate on one of them to a passed date (18:th of may 2004 in this case). If you then dropdown, it will move to 1:st of april 2009 for no reason. (1 day of current month maybe?? This is written 15:th of april). Both datetimepickers textbox and the monthview dropdown are changed to this wrong value. Proper behaviour is to keep the current date.

This is a problem on Vista only. On XP it works great.
Setting MaxDate to a date in the future makes it work alright, but I want to restrict the dates to a certain range in history.
Removing theme support also makes it work, but that's basically the idea behind using the CJ component instead of MS common ocx.
Problem is the same on both US english and Swedish regional settings so it's not related to that.
I had the same issue with the CCRP datepicker! So it may be a bug in the Vista themed version of the native common control!
It could be possible to make a workaround in the DropDown event but it seems you can only access the datepicker date textbox from there, not affect the monthview dropdown that is also set to the wrong date.
 
Can you fix this or provide a workaround?
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.