Mega Code Archive

 
Categories / Delphi / Examples
 

The tdatetime component commonly ignores key input

Question: The TDateTime component commonly ignores key input. For example, when I key in "49" in the minute field, it inputs a "4" then a "9", when I clearly want "49". Is this a bug? Answer: No. The VCL simply wraps the Windows DateTime control. To input a multiple digit number, quickly enter the first number twice, followed by the additional numbers you wish to input. In the case of "49", enter "449"