datetime picker problems

  • Thread starter Michel Posseth [MCP]
  • Start date
M

Michel Posseth [MCP]

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
 
L

lord.zoltar

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

Michel Posseth [MCP]

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

(e-mail address removed) ( i own the domain so if someone decides to spam
me on this adress it just delete the account )

thanks in advance

Michel
 
M

Michel Posseth [MCP]

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
 
L

lord.zoltar

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

Michel Posseth [MCP]

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
(e-mail address removed)


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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top