I'm modifying the form that documents an employees hours on the job. Right
now the form uses 4 textboxes to get time-in, lunch-in, lunch-out and
timeout for the day. I'm looking for an idea to replace those controls with
something better, something that would ease the pain of validation would be
good.
Hi Earl,
No problem. Use a DateTimePicker Control. Set the Format property to Custom,
and the ShowUpDown property to True. Then set the CustomFormat property to
"HH:mm:ss" and what you get is a DateTimePicker showing time only in hours,
minutes, and seconds. The user can then set any of these to any valid hour,
minute, or second value.

Signature
HTH,
Kevin Spencer
Microsoft MVP
Bit Player
http://unclechutney.blogspot.com
Where there's a Will, there's a William.
> I'm modifying the form that documents an employees hours on the job. Right
> now the form uses 4 textboxes to get time-in, lunch-in, lunch-out and
> timeout for the day. I'm looking for an idea to replace those controls
> with something better, something that would ease the pain of validation
> would be good.
Earl - 27 Jan 2007 05:52 GMT
Thanks Kevin, I implemented that last night and so far, that has worked out
well.
> Hi Earl,
>
[quoted text clipped - 9 lines]
>> controls with something better, something that would ease the pain of
>> validation would be good.