473,666 Members | 2,382 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DateTime Picker control, displaying and selecting times

hi,

I am looking to use the date/time picker control to allow the user to select
a time.

I have done a similar thing in a C++ project by formating the date time
picker to show only the time and then using a spinner control as a buddy
control to allow the user to cycle through the hour/minute/second without the
need for a keyboard,(as my app is being run on a touchscreen).

I'd appreciate any advice on how i can do something similar in C#

Thanks in advance
Macca
Nov 17 '05 #1
1 8715
Hi Macca,

you can set the Format property of the DateTimePicker to Time,
so it will only display the time. After that i would take
the TrackBar control to let the user adjust the time value.

Cheers
Lars Behrmann

_______________ __
Nothing is impossible. UML is the key for all your problems.
AODL - Make your .net apps OpenOffice ready
http://aodl.sourceforge.net/

Macca schrieb:
hi,

I am looking to use the date/time picker control to allow the user to select
a time.

I have done a similar thing in a C++ project by formating the date time
picker to show only the time and then using a spinner control as a buddy
control to allow the user to cycle through the hour/minute/second without the
need for a keyboard,(as my app is being run on a touchscreen).

I'd appreciate any advice on how i can do something similar in C#

Thanks in advance
Macca


Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
422
by: Qumer Mumtaz Goraya | last post by:
Hi There is a datatime picker control in one column of my datagrid.When the cell of sepecific column get the focus the datetime picker control appeare It shows the current system date.If once I changed the date then next time when the control appeare in next cell same modified date is displayed. What I wanna do is that date picker must show the current date in the cell the cell is empty. if it already have some value in it then that value...
4
502
by: ruca | last post by:
How can I use DateTime Picker control in my ASPX page? I already add the component to my project. I put one control in my page and give him an id and name. But when I try to use it in the code, gives an error saying that the variable dtpMyDate (it's the id that I choose) is not declared. What do I have to do?
6
1774
by: ruca | last post by:
How can I define a DatePicker control with events in ASPX? When I drag and drop a DateTime Picker control into my page and then try to use it in code, it gives an error saying that my control is not defined. Can you help me? --
1
1570
by: venky | last post by:
Hi, Is there any good datetime picker control to use for asp.net pages? I want have a date field in my form to show, i want the behaviour like when u click the button next to text box, it shoud display the calendar control venky
10
1768
by: Dennis D. | last post by:
Trying to write an itinerary program. Got date and time from date time picker Converted it to date variables to extract the date and the time The form has first a textbox displaying the starting date and time via the picker. The next few text boxes allow user input of hours and minutes for elapsed time of occurring events Each text box subtracts or adds from the previous box to reveal a new date time
0
1198
by: venky | last post by:
Can anyone tell me what event is triggered when you click on the updown button on datetime picker control? For a datetime control, i want to increment the mins field when user clicks on the updown arrowy button. This is when the control doesn't have focus and then user directly clicks the updown arrow button, i want the mins field to increment for custom format of hh:mm:ss . It increments the hour field.
5
3487
by: Michel Posseth [MCP] | last post by:
Hello we have encountered the following problems with the date time picker control A : datetime picker control gives focus to last entered field when moving back and forward with focus how do we reset this to the first field ? B : datetime picker in DD-MM-YYYY default format ( europe , NL-NL localization ) refuses an entry of 31 on the DD filed cause the month is already chosen to the current mont ( (02) februari wich only has 28...
0
2840
by: fredloh | last post by:
i have a tab control on my form. i then have several microsoft date and time picker control on the tab control. when i select a date on any of the date and time picker control, the result of the control's value is always 12:00:00 am instead of the date i selected even though the date displays correctly on the date and time picker control. the controls are unbound. why is this? i also have another identical form where the date and...
1
2327
by: sonubaba | last post by:
hello, my question is, in my web application i need datetime picker control in which user can select both date and time from DateTime Picker control i could not find this anywhere on inter net pl give me suggestion and give me datetime picker control and its coding
0
8440
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8352
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8780
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8549
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8636
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5661
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2765
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2005
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.