Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi to all.
I need to set a max. of 2 hours after a first selection, this in Delphi 5.
This is what I mean:
I have two date-time-pickers set to show only the time, when I select a Time in the first one I need to limit the second to show or to select just 2 hours after the first (Ex. If in the first one I choose 9:00 AM, the second is just going to let me select [or select automatically] the 11:00 AM)
Thanks in advance for your answers.

UPDATE
I found the solution...it was so easy...
To anyone who cares about it:

tmrEnd.Time:=tmrEntry.Time+ EncodeTime(2,0,0,0);
Posted
Updated 26-Apr-12 5:32am
v2

1 solution

To put it out of unanswered list.

OP found the solution and updated:
I found the solution...it was so easy...
To anyone who cares about it:

C#
tmrEnd.Time:=tmrEntry.Time+ EncodeTime(2,0,0,0); 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900