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 by lord

lord
Wed Feb 28 12:22:39 CST 2007

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.


Re: datetime picker problems by Michel

Michel
Wed Feb 28 13:23:14 CST 2007

>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

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...
>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.
>



Re: datetime picker problems by Michel

Michel
Wed Mar 07 15:47:30 CST 2007


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/Downloads/Examples/AuthorMP/dateentry.zip







"Michel Posseth [MCP]" <MSDN@posseth.com> schreef in bericht
news:ubp9S32WHHA.3972@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
>
> 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...
>>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.
>>
>
>



Re: datetime picker problems by lord

lord
Wed Mar 07 16:23:30 CST 2007

On Mar 7, 4:47 pm, "Michel Posseth [MCP]" <msn...@posseth.com> wrote:
> 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.


Re: datetime picker problems by Michel

Michel
Thu Mar 08 14:40:38 CST 2007



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/Downloads/Examples/AuthorMP/dateentry.zip

if someone downloads the control and needs support or has some comments
about it ( improvements , missing features ) please email to
SimpleDateEntry@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


>>



<lord.zoltar@gmail.com> schreef in bericht
news:1173306210.420124.79800@s48g2000cws.googlegroups.com...
> On Mar 7, 4:47 pm, "Michel Posseth [MCP]" <msn...@posseth.com> wrote:
>> 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.
>