Solved

DTPicker atlernative

Posted on 2001-08-09
6
681 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
Comment Utility
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
Comment Utility
check your time settings in the control panel. Is there any difference between the two PCs?
0
 
LVL 1

Expert Comment

by:jendrix
Comment Utility
check your time settings in the control panel. Is there any difference between the two PCs?
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 1

Expert Comment

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

Author Comment

by:khaledc
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

772 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

12 Experts available now in Live!

Get 1:1 Help Now