Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to take time from user in textbox in HH:MM:SS format
Is there any way by which I can format textbox in such a way that
Initially Textbox shows 00:00:00 and when user enters time he will just need to enter numbers that is for time 11:11:11 he will just need to enter 11 11 11 and after 11, : will automatically apper
for example user will just keep on pressing 1 number button on keyboard and 11:11:11 appers in textbox and after 11:11:11 comes in textbox although user has not released button on 1 the cursor stops after writing 11:11:11
Posted

 
Share this answer
 
Why not use datetimepicker instead. If you want to make the datetimepicker look like textbox, do this:

1. Add datetimepicker to your form.
2. Go to its properties and then select Format as Time
3. Set ShowUpdown =True
 
Share this answer
 
v2
 
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