Solved

DTPicker atlernative

Posted on 2001-08-09
6
689 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

740 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