468,248 Members | 1,513 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,248 developers. It's quick & easy.

datetime picker problems



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


Feb 28 '07 #1
5 3153
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.

Feb 28 '07 #2
>The customer was very picky over
how the data should be entered and the DateTime control didn't do it
to their liking
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

da******@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

<lo*********@gmail.comschreef in bericht
news:11**********************@v33g2000cwv.googlegr oups.com...
>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.

Feb 28 '07 #3

Well i guess the e-mail from the lord has gone to a black hole or something
cause i never received it

however for those of you looking for a better way of entering dates , i have
permission from my boss to release the control i made for our company

This control is especially made for fast date data entry ( data typists )

It supports also shortcuts for entering dates 1-1 . 1.1 1 jan etc etc etc
etc everything that is accepted by the VB cdate function can be used
it also suports all designer options like aligning , databinding etc etc
, has a calendar , suports dbnull values etc etc etc
is capable of returning on empty entry Dbnull , Nothing pointer ,
string.empty or today date

and is really much much better as everything i have seen on the web ( some
of them even commercial ) , and ...... really simple made and 100% managed
code

you may download it here and try it out ( DLL , + source + test project )

http://www.vbdotnetcoder.com/Downloa.../dateentry.zip



"Michel Posseth [MCP]" <MS**@posseth.comschreef in bericht
news:ub**************@TK2MSFTNGP03.phx.gbl...
The customer was very picky over
how the data should be entered and the DateTime control didn't do it
to their liking

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

da******@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

<lo*********@gmail.comschreef in bericht
news:11**********************@v33g2000cwv.googlegr oups.com...
>>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.


Mar 7 '07 #4
On Mar 7, 4:47 pm, "Michel Posseth [MCP]" <msn...@posseth.comwrote:
Well i guess the e-mail from the lord has gone to a black hole or something
cause i never received it
Sorry, I haven't been near a computer much lately :(
I'll email you what I got later (unfortunately, probalby within the
next day or two), even though you've already got yours.

Mar 7 '07 #5


Well i was a bit in a hurry ,,, ( boss watching over my shoulder :-) if it
was already solved ) so i decided to write my own control
i have just published the latest version ( the previous one had a minor bug
,when used with data binding )

so it is now thoroughly tested by 2 other proggers and myself and we
believe we could even make this a commercial control

the download links is still
http://www.vbdotnetcoder.com/Downloa.../dateentry.zip

if someone downloads the control and needs support or has some comments
about it ( improvements , missing features ) please email to
Si*************@posseth.com
<< lord.zoltar

well if you are willing to share your code it would still be much apreciated
maybe i can learn something from it ( how you solved certain thingy`s )
i stumbled into some problems and i am verry curious to see other solutions

>>


<lo*********@gmail.comschreef in bericht
news:11*********************@s48g2000cws.googlegro ups.com...
On Mar 7, 4:47 pm, "Michel Posseth [MCP]" <msn...@posseth.comwrote:
>Well i guess the e-mail from the lord has gone to a black hole or
something
cause i never received it

Sorry, I haven't been near a computer much lately :(
I'll email you what I got later (unfortunately, probalby within the
next day or two), even though you've already got yours.

Mar 8 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Colin Joss | last post: by
reply views Thread by Ata İsmet Özçelik | last post: by
reply views Thread by Qumer Mumtaz Goraya | last post: by
6 posts views Thread by ruca | last post: by
3 posts views Thread by Brian | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.