Date-entry controls (TextBox style) for Compact Framework 1.0?

Hi,

I am looking for an easy way to do date fields for Compact Framework, in one unified control, enforced to a format such as YYYY/MM/DD ... or YYYY/MM/DD HH:MM:SS

Is there a way to do this in a single control, or will I have to use multiple TextBox's for each portion of the date and time?

Thanks,
Mark Rejhon

[324 byte] By [MarkRejhon] at [2008-3-5]
# 1
How about using a DateTimePicker control?

There're many controls (fully managed and native wrappers) around:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/netcfdatetimepicker.asp (free)

http://www.opennetcf.org/SDF (free)

http://www.intelliprog.com/netcf/dtpicker.html (commercial)

AlexY at 2007-9-9 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 2
Some of those are useful. I'll research those. I'll do some research on the links you given.

DateTimePicker works great when I only need dates. But when I also need HH:MM:SS clock time too, it becomes a problem...

MarkRejhon at 2007-9-9 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 3
Hi Mark,

There is a CustomFormat property in DateTimePicker in NETCF V2 that you can use to specify the fields you would like users to set. If you set this property to something like "MMMd, yyyy h:m:s tt", the users will be able to set both the date and time in the same control.

Cheers,
Anthony

AnthonyWong at 2007-9-9 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 4
For now, I am trying to stick to Compact Framework 1.0 for now. Eventually, I'll go to 2.0 .... For now, I may simply just add three textboxes for the HH MM SS values.

I would have preferred an additional control that does this, though... Or maybe I'll attempt to extend the DateTimePicker source code a little.

MarkRejhon at 2007-9-9 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...