Click here to Skip to main content
15,899,314 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi guys
that is first time to me in this site i have some question
i want to add NumericUpDown tool to my project but i want to display time
and i want change the value of time by this tool
i want to be like( date and time setting) in pc when you want change the time
Posted
Comments
TheKingofdemon33 18-Oct-13 14:54pm    
Hi,

Even i did post my first question a few minutes ago. Do you want to display time using this tool.
Ex: A NumericUpDown control displaying the current hour. Please Describe.

Hi
Use a DateTimePicker. Set it's Format to Custom and use the CustomFormat
"HH:mm" (HH for 24 hours or hh for 12). Set ShowUpDown to true to hide the
calendar dropdown and switch to NumericUpDown mode.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 18-Oct-13 17:37pm    
Exactly. NumericUpDown is simply designed for very different things, not for time, anyway. My 5.
—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900