all groups > dotnet windows forms > february 2007 >
You're in the

dotnet windows forms

group:

datetime picker problems



Re: datetime picker problems lord.zoltar NO[at]SPAM gmail.com
2/28/2007 10:22:39 AM
dotnet windows forms: I haven't tried reproducing it, but yeah I've seen some weird
behaviour with the date time control. The customer was very picky over
how the data should be entered and the DateTime control didn't do it
to their liking. I found that rather than try to modify the DateTime
control, I just wrote my own control that had the proper data entry
fields with the client's desired behaviour, and then validated the
date inside itself. Actually, I ended up writing a couple variations.
This was a pretty easy way of working around it. I could send code if
you want.
datetime picker problems Michel Posseth [MCP]
2/28/2007 7:13:03 PM


Hello we have encountered the following problems with the date time picker
control


A : datetime picker control gives focus to last entered field when moving
back and forward with focus how do we reset this to the first field ?

B : datetime picker in DD-MM-YYYY default format ( europe , NL-NL
localization ) refuses an entry of 31 on the DD filed cause the month is
already chosen to the current mont ( (02) februari wich only has 28 days )


steps to reproduce these problems

A : can be reproduced on any system

Throw a datetime picker control , and a textbox on a form ,set the Datetime
picker format to short , start the project , now enter a date , move the
focus to the textbox with the tab key , move the focus back with the tabkey
, you will notice that the when the focus is given back to the datetime
picker control it will select ( highlight ) the last entry box instead of
the first that we expected

B : can only be reproduced on a system with DD-MM-YYYY settings , when
the form is started the Datetime picker will start with the current month
( 2 )
however if i want to enter 31-12-2006 i need to change the month part
first

Why is the above a problem ?

Well we are currently building a production system , and for data entry this
behavior is verry unwanted as it will take extra steps for the operator to
enter valid data in the system .

For B : i have coded a solution however not completely to my satisfaction i
just default the control to 31-12-YYYY ( where YYYY = the current year )
however A: is a serious problem that i can`t solve yet

regards

Michel







Re: datetime picker problems Michel Posseth [MCP]
2/28/2007 8:23:14 PM
[quoted text, click to view]

I am currently in this situation ,,, :-(


Well i would be verry thankfull if you could send me the code , this will
probably save me from inventing the wheel myself

you could send it to

datetime@posseth.com ( i own the domain so if someone decides to spam
me on this adress it just delete the account )

thanks in advance

Michel



<lord.zoltar@gmail.com> schreef in bericht
news:1172686959.099375.175500@v33g2000cwv.googlegroups.com...
[quoted text, click to view]

AddThis Social Bookmark Button