Solved

DTPicker atlernative

Posted on 2001-08-09
6
683 Views
Last Modified: 2012-05-04
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.
0
Comment
Question by:khaledc
  • 3
  • 2
6 Comments
 
LVL 11

Expert Comment

by:Otana
ID: 6367139
why don't you use a masked textbox? give it mask 00:00:00, and let the user just enter the values.
0
 
LVL 1

Expert Comment

by:jendrix
ID: 6367689
check your time settings in the control panel. Is there any difference between the two PCs?
0
 
LVL 1

Expert Comment

by:jendrix
ID: 6367706
check your time settings in the control panel. Is there any difference between the two PCs?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Expert Comment

by:jendrix
ID: 6367708
check your time settings in the control panel. Is there any difference between the two PCs?
0
 
LVL 1

Author Comment

by:khaledc
ID: 6367793
Otana,

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

I don't think this is the problem!

Cheers all.
0
 
LVL 11

Accepted Solution

by:
Otana earned 50 total points
ID: 6367866
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now