Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Anyone looking for a way to modernize legacy data or easily migrate to a more cost-effective database without sacrificing functionality will benefit from this seminar. View the Intro to Advantage Database Server now!
  #1  
Old December 25th, 2002, 09:39 PM
vikaspa vikaspa is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Mumbai
Posts: 72 vikaspa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 55 m 27 sec
Reputation Power: 6
DTPICKER ... Can we show CLOCK instead of calender ?

I am really thankful to this forum for timely and accurate information...


I had developed an application where in user wnat the time in Hours (with am and pm e.g. 9 am, 1 pm , 4 pm etc)

I can customise the dtPicker that will show the Hours with am and pm with 'hh tt'

But when user clicks on DtPicker, its shows a clendar...can we show the click or any thing relevan to time ? and definitely not the calendar...which is irrelevant

with regards
Vikas Tahavale

Reply With Quote
  #2  
Old December 29th, 2002, 12:50 AM
micros_bytes micros_bytes is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2002
Posts: 790 micros_bytes User rank is Corporal (100 - 500 Reputation Level)micros_bytes User rank is Corporal (100 - 500 Reputation Level)micros_bytes User rank is Corporal (100 - 500 Reputation Level)micros_bytes User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 10 h 29 m 56 sec
Reputation Power: 9
If you set the format property of the DTPicker control to dtpTime, it will display the time in hh:mm:ss with AM or PM.

Also, where the format is set to dtpTime, the user doesn't get the calendar when clicking the control. It will scroll through the selected part of the time which by default is the hours.

You can also programmatically control what time is displayed by the control when it loads.

Is there any particular reason you don't want the minutes and seconds showing?

Reply With Quote
  #3  
Old December 29th, 2002, 05:09 AM
vikaspa vikaspa is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Mumbai
Posts: 72 vikaspa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 55 m 27 sec
Reputation Power: 6
This topic is closed...client want only hours

Thanks for te accurate feedback !

The client stores the delivery time in this case and donot want Minutes and seconds.


thanks again for response

Withr egards
Vikas Athavale

Last edited by vikaspa : December 29th, 2002 at 05:12 AM.

Reply With Quote
  #4  
Old December 31st, 2002, 03:13 PM
micros_bytes micros_bytes is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2002
Posts: 790 micros_bytes User rank is Corporal (100 - 500 Reputation Level)micros_bytes User rank is Corporal (100 - 500 Reputation Level)micros_bytes User rank is Corporal (100 - 500 Reputation Level)micros_bytes User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 10 h 29 m 56 sec
Reputation Power: 9
If you only need Hours with no minutes and don't want a calendar to drop down, why not just use two regular combo boxes?

In one, list the values 1 through 12 and in the other list AM and PM. Then you don't have the issue with the calendar appearing in the DTPicker.

Code:
Dim i As Integer
i = 1
Do While i <= 12
Dim strHR
    strHR = i & ":00"
    cboHrs.AddItem (strHR)
    i = i + 1
Loop
cboAMPM.AddItem ("AM")
cboAMPM.AddItem ("PM")

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > DTPICKER ... Can we show CLOCK instead of calender ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway