It seems that there is no way to force the DateTimePicker to go before 1753.
The absolute minimum date it will allow is stored in a readonly static
variable. I have not other suggestions than to write your own calendar
control (if you must stay  in the WinForms API).
If you want to try WPF (keeps you on the desktop): There is no
DateTimePicker in WPF. But you can make your own, someone already has too.
There is a pretty bit set of cool custom controls available at
http://j832.com/bagotricks/. <http://j832.com/bagotricks/>
Included in this download is the source code. There are two different types
of date picker controls. The guy who did them has limited his min date to
1753 as well, but since you have the source code you can change that.

Another options is to use Asp.Net (you will have to build a web
application): There is a Calendar control in that you can simply drag and
drop on a page. It supports a lot of customization for looks, but most
importantly it will go back far before 1753. I didn't run any tests to see
just how far back, the furthest I have tested is Jan 1, 1400.

Hope this helps.


On Thu, Sep 4, 2008 at 5:02 AM, EmJay <[EMAIL PROTECTED]> wrote:

>
> Hi all,
>
> I have a need to be able to override the standard .NET 2.0
> DateTimePicker control. Principally, I need to be able to adjust the
> MinDate property to allow the control to go back to dates prior to the
> adoption of the Gregorian calendar by Great Britain in 1752.
>
> Initially, I'd like to be able to go back to 1582, when Pope Gregory
> decreed that the new calendar should come into force.
>
> At the same time, I'd like to be able to return years in a double-
> dated fashion for those years between 1582 and 1752. This, to take
> account of the traditional year in Great Britain running from March
> 25th to March 24th.
>
> Subsequently, I'd like to be able to go back beyond 1582, into the
> days when the Julian Calendar was still in widespread use.
>
> Am I being a bit foolish in using the DateTimePicker as the starting
> point? Or should I consider developing a class and control from
> scratch?
>
> Any advice and/or help much appreciated.
>
> Regards
> Mike Fry
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---

Reply via email to