DTPicker atlernative

Dear All,

I was using DTPicker control to get the user to enter a waiting period time (say 1:15:30, which is translate to 1 hour 15 minutes and 30 seconds). My dilemma started when I changed PC. I was using VB6 with SP5 (upgraded from SP4) on the old computer to VB6 with directly SP5 on the new computer (without an upgrade from SP4). The DTPicker control was behaving as I wanted to on the old PC, however with the new PC the default 00:00:00 is turned automatically into 12:00:00, which is annoying for the user eventhough it still means the same (?).

My question is there any remedy for this problem and/or any alternative control that can accept time as input?

Thank you for your help in advance.
LVL 1
khaledcAsked:
Who is Participating?
 
OtanaConnect With a Mentor Commented:
Insert the Microsoft Masked Edit Control in your project.
It's possible you have to have Service Pack 3, I'm not sure.

Set the mask property to:

##:##:##

the user can then only enter six numbers in three groups of 2, split by ":"

You may want to change the PromptChar property to a space instead of _
0
 
OtanaCommented:
why don't you use a masked textbox? give it mask 00:00:00, and let the user just enter the values.
0
 
Friedhelm Feller-PrzybylSoftware EngineerCommented:
check your time settings in the control panel. Is there any difference between the two PCs?
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

 
Friedhelm Feller-PrzybylSoftware EngineerCommented:
check your time settings in the control panel. Is there any difference between the two PCs?
0
 
Friedhelm Feller-PrzybylSoftware EngineerCommented:
check your time settings in the control panel. Is there any difference between the two PCs?
0
 
khaledcAuthor Commented:
Otana,

Can you elaborate a bit more?
********
jendrix,

I don't think this is the problem!

Cheers all.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.