473,386 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 3465
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Colin Joss | last post by:
Sorry folks, being a bit dense here. I need a DateTime Picker for a PDA application I'm building. Couldn't see one in the standard tools so search Microsoft. Found one. Downloaded it. Now...
0
by: Ata İsmet Özçelik | last post by:
Hi there, I have a problem with the DateTime picker.. I want to use my custom format; for this I can give a string for the format.But My goal is to have the month name in the box in upper case...
0
by: Qumer Mumtaz Goraya | last post by:
Hi There is a datatime picker control in one column of my datagrid.When the cell of sepecific column get the focus the datetime picker control appeare It shows the current system date.If once I...
6
by: ruca | last post by:
How can I define a DatePicker control with events in ASPX? When I drag and drop a DateTime Picker control into my page and then try to use it in code, it gives an error saying that my control is...
3
by: Brian | last post by:
Hello, I have a wierd problem. I have a datetime picker that doesn't seem to want to sinc up its .value and .text proberties. I can step through the code and see that they are different values. ...
1
mafaisal
by: mafaisal | last post by:
Hello Experts I am Using vb.net 2005 Hw To Put DateTime Picker in Datagrid view I have to sea Datetime Picker in Specified Cilomn of Datagrid I try This But The Location Hw To Change to the...
4
by: gggram2000 | last post by:
Hi, I'm using php 5.2.3 with mysql server 5.1 as backend. I have a program in which a person enters or chooses two dates from two datetime pickers and other info, I'm not sure if the problem is...
1
by: sonubaba | last post by:
hello, my question is, in my web application i need datetime picker control in which user can select both date and time from DateTime Picker control i could not find this anywhere on inter net ...
1
by: Subir Nath | last post by:
Sir, I am working on my academic project in C# windows application for management of an institute. Am not able to use the 'month calender' or 'datetime picker' control. I need to select a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.