Need a field that is Formatted. to store the Time

  • Thread starter Thread starter sravan_reddy001
  • Start date Start date
S

sravan_reddy001

I am creating a remiander application. I want the user to enter the
time in the box(can be a textbox).
____________
the format should be | 05:37:15 |
-----------------------

that should be similar to text field. The format is same as the Date
& Time Properties Field of the Windows.

the colons ( : : ) should be present by default and the user cannot
remove them
 
It looks like you want to use the TimeSpan class.
 
What is that class about. I want a control to read the time as input
in the above format. It is Possible??
 
You can use KeyUp event. Accept only numeric input and insert colons at
appropriate places. Hope it helps.

SG
 
thanks.
thats good idea. i got it .
i used the maskedtextbox control, there i had given my custom
formatting.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top